Ended db base api + tests
Moved sinon.js outside browserify
Refactored and tested http module