Added logging to the REST layer.
Added examples to README.