Some code to deduce an OS/Platform/Browser out of a user-agent string