Finalize response

Override either res.send or res.end to wait for the store update
Fixed tests
Merge pull request #1 from a8a3d2/master

Finalize response