Refactored to use middle layer + Authentication against api
test
Merge branch 'master' of https://github.com/edwardhunton/rightster