added is_mobile function to detect mobile patterns in HTTP User-Agent header.