First draft of tests

The sign out scenario is actually part of dashboard feature, so refactored that.
Started writing unit tests for User model, which I'll start fleshing out now

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Added some tests for User Validation

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Validation code added

Tests pass

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Additional validation

Username and name max length, plus email format

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>
Adding case-insensitive checking of username uniqueness

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>