Clean up of Dojo controller, including abstraction

Features abstracted to MY_Controller, and MY_Controller
used as a base class.
Spacing fixes
Fix all whitespace in Dojo Controller file. Test
More whitespace fixes
Merge branch 'rejig'