wip: Add rest api

Close #29
Implements #30 

TODO:

- [ ] put the application name in the service .name property
added a comment, not sure why github doesn't realize it.