working on store
refeactored history
more refactoring and added first test
Merge branch 'master' of github.com:cgrates/cgrates
made test pass for the moment