Add globals
Update gapi and oauth functionality
Various improvements and rootscope decoupling
Update tests
Update build
Merge pull request #61 from Rise-Vision/chore/refac

Chore/refac