Cleanups, more docs, removing dead code.
Documenting migrations.
Fixing doc syntax errors.
Test adding a foreign key.