new version pf_de_https - internalize check process

New version of pf_de_https will respect calls to old version of function
but now will allow us to pass a function to retrieve URLs and will
decide if it needs to de https based on the result of that function.
Based on @boonebgorges's code in #356