wip: Add rest api

Close #29
Implements #30 

TODO:

- [ ] put the application name in the service .name property
the runner is going to have to emit events to indicate state change, eventually, but I found it possible to avoid using it for now (and forgot to delete it).