#371 - Specs for groups, pipelines, instances, stages done.
#371 - Specs for operations and pause messages.
#371 - Split latest stage name and state.
#371 - Handle previous instance blurb.
#371 - Add some comments in the new dashboard JSON ERB.
#371 - Small refactor - dashboard JSON erb - around pause operation.
#371 - Change: .to_json() => .to_json
#371 - Make temporary changes needed to make new JSON work.

* New JSON can now be accessed at: http://SERVER:8153/go/pipelines.new_json
#371 - Now accessible as dashboard.json

* Removed temporary .new_json mime type alias.
Merge remote-tracking branch 'origin/master' into new_dashboard_json
Copy over configuration needed for gadgets.
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.
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