Changed from mongoose-api to use mers

RESTful api auto-gen.
Slightly modified streams.js in mers