Added a convinient method to retrieve setting value

- Updated plugin localstorage
- Added corresponding unit test