Update rails to 3.2.12ish
ProviderAccount fixes for rails 3.2.11

Call load_provider on ProviderAccount edit:

@provider is used in edit.html.haml but isn't loaded.  This worked
with rails 3.2.3 but stopped working with rails >= 3.2.4.  I have no
idea how it ever worked originally.  This explicitly calls
load_provider, but only after calling require_privilege (and thus not
from before_filter).  Otherwise load_provider will throw an exception
if the correct permissions aren't set.

Add load_provider to before_filter for update:

In update, if provider_account doesn't validate, the view renders the
edit action, which needs @provider in order to construct the edit
path.
Merge pull request #332 from jeckersb/rails-3.2.12ish

Rails 3.2.12ish
Tim - added gem, migrations and mountpoint

- Rails version in Gemfile.lock updated to 3.2.8 which is required by Tim
- 'model_Validations' branch is for now used for Tim, because of a bug in Rails
master branch doesn't include model validations patch yet
Tim - added roles for BaseImage and Template models
Tim - added permission checking to Tim controllers
Tim - added base_images and templates controller permission tests
Tim - prefixed *_path and *_url helper method calls

_path and _url method calls should be prefixed to distinguish between
engine and main_app
Tim - base_images index action
Tim - base_images new action
Tim - added autgenerating of uuid for base_image and image_version

Currently image and image_build uuids are used in deployable XMLs for referencing
images.
Tim - changed provider_images_for_account to return only one provider image

Since ProviderImage has also provider account attribute, it's not possible
that this method could return more than one provider image. This patch
changes the method to return only one provider image and makes it working
with Tim.
Tim - replaced iwhd calls by Tim calls
Tim - provider/target images associated with provider account/type

Tim doesn't support association with provider account and provider type models,
so we add this association on conductor side to avoid referencing through names.
Tim - image import
Tim - fixed most of rspec and cucumber tests
Fixed realms mapping when finding instance matches

If a frontend realm was mapped to backend realms and all of these
backend realms were unavailable, then match was not found (correct),
but no error message was created.

With this patch the test "shouldn't match frontend realms mapped to
unavailable realms" in spec/models/instance_spec.rb now passes.
Tim - old warehouse lib removed

including unused controllers and views.
There are still some remaining chunks (lib/image.rb) which will be
removed in round 2 when we will be sure it's not used anymore.
Tim - added license into new files
Removed obsolete rhtml error layouts

and converted popup-error from rhtml to haml