wip: Add rest api

Close #29
Implements #30 

TODO:

- [ ] put the application name in the service .name property
right, that is legacy code, I will fix.