Refactor to make files more domain specific, injected factory to consume api.

Still battling with CORS issue
Renaming of main.js to masjid.js
Merge pull request #1 from amunda/refactor_and_services_addition

Refactor to make files more domain specific, injected factory to consume API