Support for application controller

Closes #2