Simple user agent sniffer to determine the device type and platform, as well as orientation.