Update UserAgentParser.php

Added support for parsing short User Agent Strings
Formatting
Rewrite of pull request #19 to be much simpler.
empty strings -> null for more consistent handling
Tested updated
Merge branch 'toolstack-master'