Create iframe conditional on options and hashchange and pushstate support

Tests passed on IE6 - 11, and the latest Chrome, Firefox and Safari.