touchscreen fixes

Now Safari is fully supported.
$.agent improvements
$.mobile indicates for touchscreen device