refactor wip

really just separate files for now, still global state all over the
place
save/load curves, navigate slides
style cleanup