wip: Add rest api

Close #29
Implements #30 
Really? Must be confirmation bias that made me think the majority was in my (superior) preferred style. Carry on.