Simple component library for determining a device type from a user agent.