Add full HTML5 history support - both on the push and the pop side.