Initial implementation of a controller

- gets and parses the json message
- runs a handler, registered for the message of specific type
- allows registering and deregistering of handlers
- converts a command to a message you can send via websockets
- no tests yet, should probably test the controller thoroughly