Updated libs, added mongoose model gen.

server now use mongoose-api to auto create RESTful api.
backbone-validation reused on server side, in schema.pre() hooks,
having problems in returning error...