Add UserAgent#device_type

Adds a device_type method to the UserAgent class, which determines whether a user-agent string belongs to a computer, phone, tablet, console or misc device.