Merge pull request #28 from dizzzz/develop

general improvements of code
Merge branch 'develop' of github.com:eXist-db/messaging-replication into develop