Clean former code

- restructure the directory to reveal the structure
- clean mongo and local storage solutions