added logout function to usermodel and main view controller. Still need to hook it up on html and test it.
Merge branch 'master' of github.com:panjiw/Team-Player