Added possibility to use controller as a service.
Merge pull request #646 from mbedna/master

Added possibility to use controller as a service.