started facebook API integration
fixed some scope issues, factored out some functions
Merge branch 'feature-FB_api' into develop