Added support for RESTful interface (XML/JSON)