wip: Add rest api

Close #29
Implements #30 

TODO:

- [ ] put the application name in the service .name property
good catch, I was thinking path.join was more portable... but URI syntax isn't sys dependent, of course.