Refactor so we can make the code more testable.
Made the first test work with an spy, mocks should come after that.
Cleaning stream.tests.js
Added test for stream.post.
Added projections.test.js
Added projection.tests.js
Merge pull request #1 from kunzimariano/refactor

Merge refactor into master