History API fixes, some refactoring

- History API tests, GET and POST
- Solidify ajax nav api:
  - pages.go() takes (name,props) pair or uri string.
  - pages.submit() takes a HTMLFormElement