Merge pull request #397 from arvindsv/fix_warnings

#000 - Fix RSpec spec. Had removed fixture used by it.
Copy over configuration needed for gadgets.
#403 disabled dtd download by default
Make changes to copied-over configuration.

* Remove references of OAuth which is not moved yet.
* Change RAILS_ENV to Rails.env for Rails 4.
More one-time config needed for gadgets.
Fix the Gemfile. Enable gadgets gem.
Fix routes for gadgets.

* Remove temporary routes.
* Remove 'catch all' route which was overriding the engine's routes
  which were added later by Rails (meaning, after the 'catch all').
* Fix resources route in gadgets. It is now more similar to its original form.
Set site URLs properly.

They need to be set on to the current thread so that they can be used by the gadgets gem.
Fix 'SSL not configured' error view.

* This is used in the most bizzare way, in plugin_ssl_helper.rb
Fix view: List and add new gadget client view form.
Fix validations.
#403 SystemEnvironemnt is now passed to XmlArtifactImporter, using inavlid domain for non existant dtd for test
Merge pull request #405 from pshivana/issue_403

#403 disabled dtd download by default
#403 injecting SystemEnvironment to StageResourceImporter constructor used by tests
Merge pull request #407 from pshivana/master

#403 injecting SystemEnvironment to StageResourceImporter all constructors
Make delete provider work.

* The issue mentioned here was affecting it:
  http://martinciu.com/2011/07/difference-between-class_inheritable_attribute-and-class_attribute.html
fix html escape in stage detail -> job listing tab
Merge pull request #411 from srinivasupadhya/master

fix html escape in stage detail -> job listing tab
Fix 'Card Activity' page.

* Streaming in Rails 4 is no longer done using: render :text => proc {}
  It is done using response_body or using Live streaming (response.stream).

* Had to change makeRequest call to be a POST.

* Had to use java_stream_to_string instead of copy_java_stream_to_io. Not
  ideal, since it will not work well for binary data. In this case, it
  is alright.
Use admin layout for OAutH provider pages.