UP-3249 use mobile detect library to detect mobile devices

This uses the mobile-detect library which is in Maven Central and based on MobileESP, to detect mobile devices, and optionally tablet devices, instead of the single list of user agents that are currently being used. 

Detecting tablets is configurable via local.properties, defaults false as per current behaviour.