Updates package.json and app/index.js to work with newest versions

Defining installDependencies in prototype does call it prior to
installing mocha:app. So installation does not break
when generator-mocha is not installed. I have some idea about it but
don't really understand why. Just copied from generator-webapp.