Added factory for api calls.
Merge branch 'master' of https://github.com/Trailfinders/rugby