Use traits in user mapper.

Register service provider.
Add missing DocBlocks.