Added REST interface for non-browser clients and a python example client.