Support for touch devices (phones, tablets)

Tested on Nexus 4 and Nexus 7. Needs to be tested on Windows/iOS
devices. Includes a bugfix for IE and FF browsers.