fixed check for empty objects in db.js
Fixed HTML in dashboard and profile
Prototpes for User and Doc-objects; Store email-tokens in object allow multiple tokens at the same time