#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.
#130 - Resolving merge conflicts.
#130 - Calling escape_javascript on url for Ajax request.

* This is done to make it compatible to old Rails implementation. Added spec for the same.
* Duplicate routes got inserted in routes.rb as a result of merge. Deleted the dummy route.
Revert "Revert "Adding option to skip YUI compressor""

This reverts commit cf6efe1cadda94dbc4fabbfd9c2fea2fefe9c352.
Ignoring JS/CSS compression the right way.

The previous commit to ignore compression was alright. Except for the fact that merging was not considering a use-case where a library author might not end his/her JS file in a ';' and assumes that it will be loaded stand-alone. When we try to merge it into a single file, it throws up because of a malformed JS file. Fixed it by writing a ';' after the content is written if compression is switched off.
Paramterizing FILE_TERMINATOR character because merge() is called for both CSS & JS.

We need to terminate file contents with ';' only for JS file and not CSS files. Because the merge() method is common for both, I'm introducing this as a parameter with default being '' (for CSS).
Merge pull request #289 from sachinsudheendra/disable-compression

Ignoring JS/CSS compression the right way
Merge pull request #279 from mdaliejaz/environments_to_new_rails

#130 - Moved Environments from old Rails to new Rails