added server functionality
Merge branch 'master' of https://github.com/seanstory/model-authentication