Fix login / logout bug.

1. Fix an issue with login / logout. 

2. Update ngFacebook to current master

3. Refactored to help wrap $resource so that it resolves after FB's auth response has fired. The completion of this item has been moved to another pull request.