Changed some models and apis around. Some small tweaks to the UI. Migration.