Use _.result to allow defining localStorage as a function
Merge pull request #151 from nbergseng/master

Use result (duplicated from _.result) to allow defining localStorage as a function