add isMobile service and tests

refactor while working on https://github.com/bitpay/copay/issues/693