[COOK-1115] - nginx::source should daemonize in init script
add NGINX ohai plugin recipe to NGINX cookbook

ohai plugin is used to determine what the NGINX binary was compiled with at compilation time
you can find out things like:
	what modules where compiled into NGINX
	what the conf_path is set to
	what the prefix is set to
	what the version of NGINX is

This is a more accurate way of determining the state of the node instead of relying on attribute data

Signed-off-by: jtimberman <joshua@opscode.com>
default recipe now installs nginx ohai plugin

Signed-off-by: jtimberman <joshua@opscode.com>
nginx::source now installs nginx ohai plugin

nginx[:binary] attribute will be set to nginx[:src_binary]
this attribute is important to notify the nginx ohai plugin where the
expected nginx binary is located. This binary is used to determine information
about the nginx installation.

additionally, there really is no reason for two possible binary paths. The
NGINX cookbook is a choose a type of installation - package or source

Signed-off-by: jtimberman <joshua@opscode.com>
remove unnecessary comments

Signed-off-by: jtimberman <joshua@opscode.com>
initialize defaults for provided NGINX ohai plugin attributes

Signed-off-by: jtimberman <joshua@opscode.com>
add support for compiling modules into NGINX source

by default two modules will be compiled in:
	http_ssl_module
	http_gzip_static_module

Signed-off-by: jtimberman <joshua@opscode.com>
move nginx[:url] attribute to nginx[:source][:url]

Signed-off-by: jtimberman <joshua@opscode.com>
remove unnecessary nginx[:src_binary] attribute

replaced by setting nginx[:binary] attribute

Signed-off-by: jtimberman <joshua@opscode.com>
rename nginx[:install_path] attribute to nginx[:source][:prefix]

Signed-off-by: jtimberman <joshua@opscode.com>
eliminate temporary variable nginx_version

Signed-off-by: jtimberman <joshua@opscode.com>
move NGINX directory creation before module recipes are run

this is required if module recipes configure themselves into NGINX dirs

Signed-off-by: jtimberman <joshua@opscode.com>
add authorized_ips and http_stub_status_module recipes

authorized_ips will write an authorized_ips file to disk to protect locations from connections from unknown ips
http_stub_status_module will enable the stub status NGINX module for monitoring NGINX status

Signed-off-by: jtimberman <joshua@opscode.com>
add http_realip_module recipe to NGINX cookbook

Signed-off-by: jtimberman <joshua@opscode.com>
add http_geoip_module recipe to NGINX cookbook

Signed-off-by: jtimberman <joshua@opscode.com>
NGINX compilation resource reflects on "force recompile" runstate attribute

Signed-off-by: jtimberman <joshua@opscode.com>
fix bug in parsing configure arguments in NGINX ohai plugin

should split on '--' not spaces, flags could have spaces:
	--ld-path="something here"

Signed-off-by: jtimberman <joshua@opscode.com>
remove nginx/modules from NGINX ohai plugin

these are authoratative in the configure arguments and the
attribute data of the cookbook

Signed-off-by: jtimberman <joshua@opscode.com>
use single quotes in compilation flags since these are taken as literal values when compared to a ruby string

Signed-off-by: jtimberman <joshua@opscode.com>
Change file headers to credit Riot Games & myself

Signed-off-by: jtimberman <joshua@opscode.com>