Update is_mobile to detect ipad/tablets correcty

Update is_mobile function to properly detect devices that return true for is_mobile and is_browser. Will prefer desktop if is_mobile and is_desktop both return true, but only if mobile is returned as something "Generic"