A wrapper for localstorage that also works on titanium and nodejs