implemented #25

flags added to querystring. these flags are used purely by the js. 

dropped use of History.js due to undesired behaviour -> triggering
popState on call to replaceState()