Moved profile controller functionality into home controller and
separated into profile and preferences.
Fixed issues with statics and none-statics havinng same signitures.
Renamed the statics to isTypeEditable etc.
Tweaks for the styling.
Sorted debug code.