Alternative definition of findOne
findById also accepts a select parameter
DRYed the config object
Implemented a correct salted hash for passwords using bcrypt
Reduced the number of hashing rounds since it lead to a consequent slowdown