migrates detection from tobie/ua-parser to piwik/device-detector