use Modernizr to detect if the device is touchable or not, therefore decide whether to use tablet firendly css syling.
Merge pull request #2744 from 66eli77/sidebar-for-tablet

use Modernizr to replace javascript mobile browser detection(#2730)