Fix calls to wrong function.
Change output buffering so it is flushed before wp_head() is done and don't use a callback since it was troublesome. Allows us to remove some extra preg_replace() functions to replace our own output.