Merge pull request #31 from gevaerts/master

Exceptions from a RepositoryListener should not be allowed to propagate ...
Add support for PUT, both for json and arbitrary data (the latter being passed to the method as an InputStream)