Remove obsolete RegisteredClientRessource, improve error handling on
client registration
Adopt changes made earlier to new improvements branch
Refactor code into separate Maven modules