Fixes for the admin meta-contexs features

Squashed commit of the following:

commit af1cf5e27d876eb1704bb017102ec387576be618
Author: Michał Podlecki <m.podlecki@op.pl>
Date:   Tue Jun 3 09:28:47 2014 +0200

    Squashed commits:

    fix removing meta context from a meta context group

    proper action labels, rescue action exceptions

    fix deleting a context when it is associated with media sets
ui: context/vocabulary revamp: fixing showstoppers

Squashed commit of the following:

commit 97c3e3c7d867939ba2bf899a2f0c9f0e80f01760
Author: Max F. Albrecht <1@178.is>
Date:   Tue Jun 3 14:41:16 2014 +0200

    fix the test #2

commit e9a72336092682a04eb06ebfff16a6c0d4b5586a
Author: Max F. Albrecht <1@178.is>
Date:   Mon Jun 2 16:48:51 2014 +0200

    fix the test

commit aa394166f9bac1fcbf5e6d864a6f7949abbb2aa4
Author: Max F. Albrecht <1@178.is>
Date:   Mon Jun 2 15:21:01 2014 +0200

    wording

commit 0efad30b9e825b1ff456d74371c0c9b1e84a5e3e
Author: Max F. Albrecht <1@178.is>
Date:   Mon Jun 2 15:20:47 2014 +0200

    ask for confirmation before removing context from set

commit 7cd61aa7741bc4709af8be8ac2f3a9188ce92879
Author: Max F. Albrecht <1@178.is>
Date:   Mon Jun 2 15:20:03 2014 +0200

    also guard media_set controller agains contexts with empty keys
Set stable version to 2.0.5
Upgrade to rails 4.1.1

Remove composite_primary_keys gem (prepare for rails 4.1)

and refactor madek so it doesn't need it

Upgrade gems to rails 4.1.1; require ruby 2.1.1

Revert sass gem version (bundler problem)

Rename search to text_search

One more search

Fix person search

Fix ...

...wip...

Fix

Fix spec

search -> text_search

MediaResourcesFilter search -> text_search

Fix spec

Resolved some assets issues

Resurrect old search method for users

Use hacky_search in people_controller

Fix keywords controller

Remove flash from redirect

Debugging to_sql problem

Fix prepared query

Use flash.keep instead of forwarding the flash object

Fix return in redirect

Monkey patch to_sql with unprepared_statement

Fix a subquery

Fix one issue in person#create

Fix a issue in app_admien/media_sets_controller

Fix the fix

Fix user autocompletion in app_admin/users
Enable virtual attributes on MetaContext

Hacky solution in order to get it work.  Needs refactoring.
personas_db: #fix the logo image link
personas_db: remove obsolete psql dumps
Add search (indexing) test after moving people-metadata
Reindex media_resources when people meta_data has been transferred #FIX
ui: nav: entries: don't show 'Vocabulary' tab if they aren't any

[Fixes #72677942]
Fixed keyword error for meta term resource transfer

[Fixes #69565910]
#fix `find_or_create_by_foo` to `find_or_create_by(:foo)`
(Deprecated in Rails4)
Extract common steps wrt spec/features/search
Revert rspec version (get rid of warnings for now)
Add test for transferring terms and then searching for them
Refactored transfer in controller, search seems not to work yet
Reindex affected media-resources after transfer
Add migration to reindex media_resources
Admin interface: metadatum string settings