Refactored Angular scripts

Services and factories now have their own folder. Also refactored Tests
folder.