Adding Alembic stuff

See README.md for details.

Also a couple of other small server side changes.