Encode ID in application output
Use shared idcodec bean
Tidy up deserializers
Use mongo id generation and tidy up bean creation