BZ 861063 - Post-login redirect goes to referer for non-GET URLs

The existing redirect code to return people to their previous
URL did not consider request type, and would thus redirect you to
various URLs using a GET which was usually incorrect.

For non-GET URLs, we should instead redirect to the referring page.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=861063
add missing key to provider_accounts_realms table
Renamed Realm model to ProviderRealm
Renamed RealmsController to FrontendRealmsController
Fix db:migrate issue related to BZ 785334

In production environment a PK and serial sequence query
would be executed referencing the provider_realms table.
The query runs before db:migrate completes and fails
because it fails to find the to be renamed provider_realms
table.
Privilege checks changed to FrontendRealm from ProviderRealm.

Replaced references to realms attributes with provider_realms.

Removed old realms controllers and views that have been replaced
by frontend realms equivalents.
Merge pull request #126 from rwsu/rename-realms

Rename realms controller and model to make the relationships clearer - rebased
Set the correct compass gem version constraints

The current converge-ui works with compass version lower than 0.12, Upgrading to latest version is
planned. To use latest compass with rails, it is necessary to use compass-rails gem, which cooperates
with rails assets pipeline on compiling the stylesheets.

http://compass-style.org/blog/2012/01/29/compass-and-rails-integration/
Merge pull request #123 from martinpovolny/index2

add missing key to provider_accounts_realms table
Merge pull request #127 from jtomasek/compass_gemfile

Set the correct compass gem version constraints
Merge pull request #90 from n1zyy/bz_861063-redirect_to_post

BZ 861063 - Post-login redirect goes to referer for non-GET URLs
Revised missing translation keys in frontend_realms#form view

https://bugzilla.redhat.com/show_bug.cgi?id=813179

Signed-off-by: Tzu-Mainn Chen <tzumainn@redhat.com>
fix migration to work on renamed table provider_accounts_provider_realms
Merge pull request #128 from martinpovolny/fix_realm_migr

fix migration to work on renamed table provider_accounts_provider_realms
Fixed order of buttons in Add Config Server form
API: 422 Unprocessable Entity on failed validation

Return 422 Unprocessable Entity instead of 400 Bad Request when API
request fails because of validation errors.

This commit only fixes APIs that have not been already published.
API: 201 Created for create actions

Return 201 Created instead of 200 OK for #create actions in REST API.

This commit only fixes APIs that have not been already published.
API: 204 No Content for destroy actions

Return 204 No Content for destroy actions instead of 200 OK and various
response body contents used previously.

Note that the specs now cannot check for returned content-type, as Rails
does not print Content-Type header when response status is 204 No
Content. Even if specified manually like
`render ..., :content_type => 'application/xml'`, the Content-Type
header is not printed.

They even have a unit test for this behavior:
https://github.com/rails/rails/blob/c62abed8ca480216b3b6386c95935bfc24683216/actionpack/test/controller/new_base/bare_metal_test.rb#L96-100

This commit only fixes APIs that have not been already published.
Fix HardwareProfilesController for API

Add error handling responses, change HTTP status codes according to new
conventions.
BZ865548: fix autoupdating image list for given environment

https://bugzilla.redhat.com/show_bug.cgi?id=865548