admin: metadatum / terms of metakeys

delivers [#62565044]

Squashed commit of the following:

commit 27bf1a41976d4a77988717148b57292180cbadb7
Author: Michał Podlecki <m.podlecki@op.pl>
Date:   Wed May 28 15:49:04 2014 +0200

    update personas db dump

commit 1137e1d4a0230486eb54bb2bfe0cef4d731d72aa
Author: Michał Podlecki <m.podlecki@op.pl>
Date:   Mon May 19 10:31:39 2014 +0200

    Squashed commits:

    meta terms sorting adjustments; alphabetical order flag

    display meta terms list as closed list if there is more than 16 of them
admin: Improvement metacontexts and metacontext groups

delivers [#72166730]

Squashed commits:

admin can add meta keys to meta context

admin can remove a context from a context group

admin can delete a context

admin can delete meta key from a context

resolve depreciation warnings

fix meta context delete from meta conntext group

run tests for admin_meta_contexts
ui: context/vocabulary revamp #1

- combine old UI of context, vocabulary and abstract into 'vocabulary' tab
- rename all instances of 'context' to vocabulary
- re-implement term-usage filter-slider
- retired parts of the old internal API (abstract etc)
#fix /nagiosstat route
Changed links from admin to user interface to be opened in a new tab, modified media sets and media files link name/icon
API: docu redirects, new madek urls, docu custom_urls
ui: context/vocabulary revamp: fixing showstoppers

commit e9a20923a1e6d286b7c702df60ca4aa2a458b18a
Author: Max F. Albrecht <1@178.is>
Date:   Mon Jun 2 13:18:38 2014 +0200

    vocabulary: make group of keys horizontal

commit 0f8b6378787558bd6d71e6412978f51a3c8f8b85
Author: Max F. Albrecht <1@178.is>
Date:   Fri May 30 17:37:35 2014 +0200

    my/dashboard: swap user_contexts and welcome message

commit af7949e15ce734df85c49fa539b4262b97f66894
Author: Max F. Albrecht <1@178.is>
Date:   Fri May 30 17:05:34 2014 +0200

    wrap vocabularies listing in proper rows

commit d938b7a7a1eb681d5abb64ed38e486884d8555d3
Author: Max F. Albrecht <1@178.is>
Date:   Fri May 30 17:04:48 2014 +0200

    when showing contexts, don't crash if a key has no terms
Set PG env vars during load_data; cleanup db_helper
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