extracted factory methods for ClassMapper and IdResolver into singletons

Signed-off-by: gburgett <gordon.burgett@gmail.com>