Security backbone

Implemented security backbone; upgraded mongo persistence to morphia