wip: Add rest api

Close #29
Implements #30 

TODO:

- [ ] put the application name in the service .name property
I kindof prefer exports on top, it helps to know right away what is exported, but convention seems to be on the bottom, or interspersed through the file. Note that exports on the top only works when exporting function definitions, anything else requires the export to occur after the definition, so sometimes you have to put  the export on the bottom. fwiw, I think I've drifted towards the bottom as the only place that always works.