Added database port field to PHP and Java configure templates

cr https://cr.amazon.com/r/2264891/
Added database port field to PHP and Java configure templates

cr https://cr.amazon.com/r/2264891/
Revert "Added database port field to PHP and Java configure templates"

This reverts commit fd8a3bf5dc8164c7c1bbea1c9b462f2ee37e4b04.
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 X-Request-Start header to nginx/unicorn Rails app configuration for NewRelic request queueing
Reconnect to Rails cache server after Unicorn forks
Add shortnames to /etc/hosts again.
Add nginx restart recipe
Merge branch 'nginx-unicorn-start-time-header' into master-chef-11.10