Account migration

End of @alexis-via's work. See #24