[WIP] REST API

This is an initial attempt to implement the REST API interface instead of SOAP.  The REST interface is a lot easier to implement because there is no need to construct and parse XML. See #90.

@alloy @rngtng