Add mocha to devDependencies

Add mocha to devDependencies to use locally in grunt task
Replace console.log in populate function

Replace console.log funtion to log in populate function
Call res.send(statusCode, body) is deprecated in Express 4.x. Replace calls to res.sstatus(statusCode).send(body)