Support devices with both touch and mouse/keyboard

Some devices have both touch and mouse/keyboard input, this update provides for such devices, and also fixes a problem where IE 11 on Windows 8.1 is identified as touch only when it is most likely not.
Also adds support for the data-rel attribute instead of rel when marking up galleries in HTML5