Set ENV["RAILS_ENV"] in boot.rb

Instead of setting ENV["RAILS_ENV"] in environment.rb, do so in boot.rb.

When starting the broker normally or using script/rails, environment.rb
is read after Rails has been loaded and has set ENV["RAILS_ENV"] to the
default 'development', so Rails.env.development? returns true even when
the broker is configured to use the production environment.  In the case
of oo-accept-broker, the application is started in such a way that
environment.rb is never loaded, so the development configuration is
always read even when the production configuration should be.

This commit fixes BZ871753 "[US2985][On-Premise]oo-accept-broker will
report failed for mongodb service checking even if mongodb is running."
oo-accept-broker was reading the setting for the MongoDB hostname from
the development configuration file instead of the production
configuration file, which caused the test to fail.
oo-accept-broker: add support for remote-user auth

Add support for the remote-user auth plug-in.  If the plug-in is enabled,
then the following steps are performed:

• In verbose mode, the trusted header is printed.

• /var/www/openshift/broker/httpd/conf.d/*.conf is grepped for the
  necessary settings to pass requests through for JBossTools and
  node-to-broker communication.

• The following APIs are requested without authentication to ensure that
  the appropriate responses are received.

  • The following should return 200 responses:

    /broker/rest/api
    /broker/rest/application_templates
    /broker/rest/cartridges

  • The following should return 401 responses, indicating that
    authentication is required:

    /broker/rest/user
    /broker/rest/domains
oo-accept-broker: RHEL6 compatibility

oo-accept-broker is written for Fedora, which uses systemd.  In
particular, check_auth_mongo is written with the assumption that the
service command will print systemd-style output.  These assumptions
break on RHEL6 where the service command prints sysvinit-style output.

This commit adds compatibility so that oo-accept-broker should parse the
output of the service command correctly on both recent Fedora and RHEL6.
BZ872523 - set quota for gear failed if the device name is too long
Merge pull request #829 from Miciah/oo-accept-broker-check_auth_mongo-rhel6-compatibility

Merged by openshift-bot
Merge pull request #831 from brenton/BZ872523-origin

Merged by openshift-bot
BZ868053
Fix for Bug 873765
Merge pull request #834 from jwhonce/man_page

Fix for Bug 873765
Merge pull request #808 from Miciah/move-env-setting-from-environment.rb-to-boot.rb

Merged by openshift-bot
oo-accept-broker: fix check_datastore_mongo

In oo-accept-broker, fix check_datastore to be compatible with RHEL6 the
same way we fixed check_auth_mongo.
fixing origin tests
Cleanup spec for Fedora standards

Added docs to their normal place

Added orphaned directories

Added dependancies, with what needs them

Removed mysql.tar from abstract-jboss

Separated jboss section into it's own rpm
change libra to openshift in pam_openshift man page

oo-namespace-init requires policycoreutils
Fix for Bug 873810

Remove policy enforcement of only one database in non-scaled gears
Remove execute bit on jboss features
Merge pull request #832 from bdecoste/master

Merged by openshift-bot
Merge pull request #817 from abhgupta/abhgupta-dev

Merged by openshift-bot
Cleanup spec to Fedora standards

Moved docs to their normal place

Copies now preserve properties

Own orphaned directories

Change service restart to be systemd aware

Made cron.d/1minutely a config file

Cleanup spec to Fedora standards
Merge pull request #835 from Miciah/oo-accept-broker-check_auth_mongo-rhel6-compatibility-2

Merged by openshift-bot
Merge pull request #833 from tdawson/tdawson/fed-update/openshift-origin-cartridge-abstract-1.1.1

Merged by openshift-bot