add appRequest, refactor login
Merge pull request #4 from joshuastray/fb

add appRequest, refactor login