Mobile auth

merge with https://github.com/dimagi/commcare-hq/pull/126

http://manage.dimagi.com/default.asp?51724