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