Interstingly, when you save your project as a folder, timelines are actually exported as separate json files stored in the 'Timeline' subfolder. Sadly there's no way to load/save timelines in runtime without hacking into it and that's extremely not recommended.