Add commons.sh for convenient functions
Modify detection conditions

Require both a POM and a package.json to be
present. Should be sufficient for JHipster detection.
Add nodejs/compass setup to buildpack

Includes setup steps taken from
https://github.com/stephanmelzer/heroku-buildpack-nodejs-grunt-compass.
Configuration taken as is. Maven profile explicitly stated as 'prod' now.