Add documentation, tests and pre save hook for converting username to lower case if option is specified