Modified persistence.js to use more modern dom api.  In particular

this means it will properly incorporate <base href> directives.