intermediate commit that implements some of the save user functionality with morphia
fixing up some repository code