Changes for implementing facebook login

This changes is only for web right now and not clean.. i am just pushing
code to keep a track. Will look into how its gonna work from android and
phonegap