fixing back button behaviour and playing nice with History API
Merge branch 'master' of github.com:designcreateplay/NodeBB