Controller model with namespaces

Includes some sample test. Still need to work on travis build integration.