Added database port field to PHP and Java configure templates

cr https://cr.amazon.com/r/2264891/
Make invocation of `npm install` configurable.

Change the default npm invocation to `npm install --production`.

Rename npm_install_command to npm_install_options.
Make a real copy of ENV, not just a shallow one.
Let minitest-chef-handler find the specs again.

Explanation:
When using chef-client in local mode, Chef::Config[:cookbook_path]
returns the cookbooks cache dir. But chef-zero ignores the specs
directories when filling that cache dir. Should be resolved with Chef
11.14.

References:
- https://tickets.opscode.com/browse/CHEF-4781
- https://github.com/btm/minitest-handler-cookbook/issues/42

Make code more compact - from CR.
Use has_key? for key existence test to avoid loading the whole sub-structure.
Generate /etc/hosts using search

cr https://cr.amazon.com/r/2264769/
When installing custom versions of berkshelf, don't install gem documentation.
Revert "workaround to fix test for haproxy."

This reverts commit fde06dbaa5ce2ac8d509fadc2bc061558d0a51b6.
Make all cookbook tests pass.
Revert "Added database port field to PHP and Java configure templates"

This reverts commit 821f6406e88b8ed455978639100fc9432018a20c.
Fix autofs service and mount detection.

Needed for Amazon Linux:
- /etc/init.d/autofs does detect the service status correctly when used
  inside the restart function.
- The output format of mount changed which lets OHAI not detect all
  mounts. Related: https://tickets.opscode.com/browse/OHAI-453
Make bind mount check more resilient when there's no ephemeral device at all.

Use shellout instead of backticks and df to check mount point.

Use findmnt to have a portable way of checking bind mounts.
Remove logcheck/logtail, as it's actually not used - and logcheck installation fails on Amazon Linux 2014.03.
Add shortnames to /etc/hosts again.
Use login environment for sudo.
Configure a git user to prevent git from crashing while auto-detecting the email address.
Align Ganglia client behavior to current Chef 11.4 version.
Bump default passenger version to the latest bugfix release 4.0.41.

CR: https://cr.amazon.com/r/2336930/
Remove trailing spaces
Refactor berkshel support. Introduce Provider opsworks_commons_assets_installer.