#130 - Copy environments controller, related views and specs from old Rails to new Rails.

* No changes made. Just files copied.
#130 - Fix environments_controller_spec for new Rails.

* This controller spec has render_views specs (evil, tests views in controller spec).
* form_for has changed. form_for(:environment, @environment, ...) to form_for(@environment, :as => :environment, ...)
* Had to change <%- form_for ... -%> ... <%- end -%> to <%= form_form ... %> ... <% end %>
* Had to change <%- f.fields_for ... -%> ... <%- end -%> to <%= f.fields_for ... %> ... <% end %>
* In Rails 4, in controllers only (and not in views), any usages of url_for gives an absolute path.
  Use :only_path => true to get Rails 2 behavior.
#130 - Copy files for specs from old Rails to new Rails.

* No change made. Just files copied.
#130 - Move parts of application_controller_spec to new Rails.

Moved specs for methods which are already moved.
#130 - Move parts of agents_helper_spec to new Rails.

Moved specs for methods which were already moved.
#130 - Fix agent and table helper specs for new Rails.
#130 - Copy views of environments from old Rails to new Rails.

* No change made. Just files copied.
#130 - Fix environments spec for new Rails.
#130 - Copy views and specs of Environments from old Rails to new Rails.

* No change made. Just files copied.
#130 - Fix environment_pipeline_html_spec for new Rails.

* Also, added remote_function method which was removed in Rails 3 or so. This is needed for compatibility. Moved related tests to new Rails.
#130 -Fix Environments views and specs for new Rails.

* Added ':skip_digest => true' to prevent Rails from putting it's own subkey. This is required to make it compatible with old code.
* Put the missed out test fix in application_controller_spec.
Adding option to skip YUI compressor

As this change is close to the proposed release, skipping the compression until YUI_COMPRESS_ASSETS=Y is set during builds.
moving controllers/admin/ {commands, configuration, garage, package_definition, package_repostiories, pipelines_snippets}, controllers/admin/plugins, controllers/admin_controller, required libs & util
adding empty views required for specs to pass
fixing specs
fixing deprecations warnings
moving controllers/admin/ {pipeline_groups, pipelines, materials, stages, jobs, tasks}
adding empty views required for specs to pass
fixing specs
fixing deprecations warnings