Migration branch for funsies
Finished off migration code.

Cleaned up other things, but mostly made SQlite threadsafe for
cherrypy, and prepped the migration script.

With just a little more testing, should be good to upgrade prod!
Merge branch 'migration' into with-orm
Adding comments to migration script

And some cleanup
Merge branch 'with-orm' into generalized