Ensure execution stops after Location is used in the redirection function
Fixed an issue where $style->prepare was being called too often

This also fixes some odd output buffer level nesting problems that
would cause variables to be parsed twice and therefore incorrectly.
Shorthand: ob_get_contents + ob_clean -> ob_get_clean