evdev: Add support for device quirks and implement axes swapping