Finished back-end.

A controller has been added as well as events to handle communication
between the intent service and the controller and between the controller
and the view.