Added getter/setter utils.js methods for local storage

This is primarily proactive; there are only a couple of places in the code
that use local storage, but I wanted to nip it in the bud now and use
helpers instead.

Closes COUCHDB-2432