Cleaning up some unused code.
Removed unused attributes. Also put the renderAttributes method onto the Page and called from the module and location classes.
Added a check for the attribute type, because it could be removed even though the 'object' still has a reference to it.
Removed reference to unused variable.
Controller view not used.
Tidying up the views.
Removed unused variable.
Removed unused variable.