This function is a wrapper around functions pacparser_init,
pacparser_parse_pac, pacparser_find_proxy and pacparser_cleanup. If you just
want to find out proxy a given set of pac file, url and host, this is the
function to call. This function takes care of all the initialization and
cleanup.