Global sbt removal

Changed the library servlet so that the sbt variable isn't global. The Basic and SSO endpoints now have their sbt url's supplied through their constructor, so they don't have to use sbt.Properties.

Endpoint.find is now defined in sbt/config, and is called config.findEndpoint. I updated everywhere I could find to do this instead.

The authenticators needed to be refactored significantly. They should now function better in an AMD environment actually.

BasicAuth_Dialog.js and the dialog templates were changed so that it finds the ok and cancel buttons by their id and then uses dojo.connect (or dojo/on) to specify the onclick, instead of sbt.cancel etc being specified in the html.