Added option to only use hashchanges. Fixed tests, I think.