Commented line 48 for loginUser.
Added mongoose from node_modules and changed mongoose/lib/types/array.js at line 34. The change is made because we cant use array of arrays such as [[Number]] in the model. After the change there is no problem to use that in the models.
All models now use indeces for faster selection.
Implemented create hero with lazy loading from database, and findByName.
Mongoose configuration module uses mongoose-auto-increment for Heroes id. mongoose-auto-increment configured.
Dependencies added to package.json.
LoginHandler now uses the hero data, so that after login/register can create new hero is the user has not got one, or get the hero for the current user.