Change the way controllers are defined.

As done in the rest of the app.
Merge pull request #1 from bdo-labs/refactor

Change the way controllers are defined.
WIP