Move cookie user check into user model and fix it.
Merge branch 'master' of github.com:ouyoutouchmytralala/bandyard