UADetector class for Browser and OS detection