Fix syntax.
Deserialise rim json.
Implemented saveRim in service layer.
Implemented save rim in rest layer.
Implemented rest interface for searching and indexing of rims.
Refactored searcher and indexer to be generic. Implemented rest service
to search and index hubs.
Combined HubService and RimService classes into a more generic
OwnedEntityService class.
Rest services should return 400 response if saving an entity which has a
non existent user.
Code tidy up - combine similar catch blocks.