Now unsets 'framework' session variable when previewing or switching themes [#999 state:resolved]