more refactoring and added first test
Merge branch 'master' of github.com:cgrates/cgrates
made test pass for the moment
history test passing
added some more tests