refactor some code to create an exposed API for simplified browser detection
also expose querystring & cookie handling methods as they are very useful

detectPlatform() doesnt need to be accessed externally