Speed up and move couch_httpd:find_in_binary.

See https://issues.apache.org/jira/browse/COUCHDB-1953

(cherry picked from commit 824869c3c059d887da0dbe1cd04eb244c931c27b)