Clean up imports
Upgrade classes correctly
Fix handling of datatypes in edit forms
Make sure footer stays on bottom when extra themes are used
Fix realm layout edit field