wip: Add rest api

Close #29
Implements #30 
I agree. Action is an appropriate name for a record of actions taken, but these appear to be requests for an action to be taken, which may or may not succeed... It's a subtle difference, but this whole concept of modelling RPC on top of REST is fraught with subtleties.