Added local storage functionality
Keep track of collapsed lists
Follow-up on review

- Provided additional comments
- Removed unnecessary key creation in local storage
- Moved the JSON functionality to the utility function
- Added extra unit tests
Simplified code
Removed previous collapsed modules from the local storage
Merge pull request #85 from Coenego/issue-85-collapse

Keep track of collapsed modules