Simplify $localstorage API, other small changes

Is it really necessary to have two separate functions, `$localstorage.getObject` and `$localstorage.get`?