Slowly re-designing and re-implementing the REST interface, pretty close to being done (minus auth)