getRootUrl support
added tests and fixed some other getRootUrl validation issues
added new test class
added legal stuff
added getRootUrl to test project
added check for UI Thread