Added test from persistence layer and rest endpoints; Added optional username/password fields for each endpoint, password kept encrypted in DB with secret key, but transferred as aplaint text over the wire; Simplified controller endpoints