changing namespace to match library name
fix naughty global
Script loading functionality in dedicated class
Renaming library to indicate it authenticates
adding standard JSAPI loading service