Relative paths

Always use relative paths for links. This obsoletes -r and allows viewing the documentation locally without a web server. Once the current online resources are bundled, offline-view should be possible.

Also uses localStorage instead of cookies as they don't work in local mode. I'm assuming that anyone capable of reading documentation has a browser which supports this.