Move database.check_user() to User.check_username

No reason to have duplicate username checks in teh
database model. Also made Join view use wtf_forms
for CSRF protection.
Refactor models.User to have one Update method

Changed the views to reflect this.
Merge pull request #32 from bmoar/refactor_model.user

Refactor model.user