Javadoc and DB persistence

Added some Javadoc, completed persistence of User and Group upon
registration.