[#58] load the latest version of the nginx module
[#58] load the Nginx server file so it can be used
[#58] fix the code generating sections for each device
[#58] disable logging and move the pid to the data docroot to make nginx backend less architecture dependent
[#58] remove a couple unnecessary configuration directives per Gernot's recommendation

tcp_nodelay defaults to on, so there is no need to specify it
remove unnecessary error_page config, there is no need for pretty error pages
[#58] only specify the root once in the server directive instead of for each configured location
[#58] relocate the prefix directory to keep nginx from conflicting with other running copies. Thanks Gernot for the heads up
[#58] store the nginx pid in the prefix dir and reduce the scope of the variable
clean up formatting, no functional changes
[#58] die if nginx fails to start
[#58] utilize non-daemon mode for nginx >= 1.0.9
[#58] relocate all temp_path's to a temp path specific to mogstored

this attempts to prevent conflicts with other running instances of nginx
[#58] support nginx server type in command line options
Moved utf-8 config to http block
if one really wants to be root - let him be
Merge remote-tracking branch 'pull/26/head' into next-nginx

* pull/26/head:
  if one really wants to be root - let him be
  Moved utf-8 config to http block
  [#58] support nginx server type in command line options
  [#58] relocate all temp_path's to a temp path specific to mogstored
  [#58] utilize non-daemon mode for nginx >= 1.0.9
  [#58] die if nginx fails to start
  clean up formatting, no functional changes
  [#58] store the nginx pid in the prefix dir and reduce the scope of the variable
  [#58] relocate the prefix directory to keep nginx from conflicting with other running copies. Thanks Gernot for the heads up
  [#58] only specify the root once in the server directive instead of for each configured location
  [#58] remove a couple unnecessary configuration directives per Gernot's recommendation
  [#58] disable logging and move the pid to the data docroot to make nginx backend less architecture dependent
  [#58] fix the code generating sections for each device
  [#58] load the Nginx server file so it can be used
  [#58] load the latest version of the nginx module
nginx: additional version check for uwsgi and scgi

Debian squeeze (stable as of 2013/01) uses nginx 0.7.67, so
there are likely many users still using this older version.
Attempting to specify a dummy {uwsgi,scgi}_temp_path causes
errors at startup for me.

According to the the nginx CHANGES file, uwsgi appeared in 0.8.40
and scgi appeared in 0.8.42.

ref: http://nginx.org/en/CHANGES
use the ngx_version function for determining non-daemon support

also, only calculate the actual version once