Lots of timeline rendering

It's almost fully completed now, just a couple bugs to fix. Also fixed a
bug with layer offsets not working.