Extract shared rspec feature functions
Add feature test for searching an updated meta datum
Call reindex after meta_data update #FIX search
Add migration to reindex all media_resources

Conflicts:
	db/structure.sql
Updated personas data to last migration
Redirect new uuid for various media_set urls #FIX

Conflicts:
	config/deploy/stable_version.rb
Add (individual) media_entries and count thereof for meta_context
Upgrade rails to 4.0.5, fix related issues

also upgrade other gems

Squashed commit of the following:

commit 0a9aa395cf51cea8fc17c76b9000e95416b67e78
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue May 20 16:07:06 2014 +0200

    Fix yet an other permit probblem

commit cfe407f4115978c0e52d948ddc95b35f5d8574df
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue May 20 12:51:47 2014 +0200

    Fix filter set controller

commit 9f42dac76d24d4dc39297154e59304e355cd9f01
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue May 20 12:36:23 2014 +0200

    Fix perm params and more when updating arcs

commit 778c803761f72d9d3d9efd2fa2a071191abdf80c
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue May 20 11:58:23 2014 +0200

    Permit attributes in permission controller

commit 58c54f2ec54ed708f814e72d34935ebe85db66e0
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri May 16 15:24:42 2014 +0200

    Upgrade to Rails 4.0.5; upgrade gems
app: error handling: make custom Error Classes that can be `raise`d

Fixes the infamous `not_authorized` mess:
`raise UserForbiddenError` instead of `not_authorized!`
doc: dev guide: add informal spec about individual contexts aka vocabularies
Upgrade stable version to 2.0.4
UI/UX: context => vocabulary revamp step 1/3

- rename all instances of '(meta_)context' to 'vocabulary'
- implement new unified design (combines context, vocabulary and abstract)

still missing:
- some counting queries
- optimize/consilidate existing queries
- fix tests
- polish (step 3)
Revert "UI/UX: context 1/3" since tests fail

This reverts commit f9cebb3c07f89a8e5f5880124b7e7493adc419bb.
dev/reset: make more readable
admin: meta context with meta key definitions section and groups section

Squashed commit of the following:

commit ed25df156659ab8c6aa15851afd01467e9129c58
Author: Michał Podlecki <m.podlecki@op.pl>
Date:   Mon May 26 10:09:09 2014 +0200

    meta context with meta key definitions section

commit cb07a0a5573440fdef6d52b348ecb929fd3d9466
Author: Michał Podlecki <m.podlecki@op.pl>
Date:   Mon May 26 07:34:42 2014 +0200

    admin meta context groups section
admin: fix person edit.

delivers [#71113516]

Squashed commit of the following:

commit ac6b5d4e47e8b3a8e985afca18c7006438cc6f85
Author: Michał Podlecki <m.podlecki@op.pl>
Date:   Sun May 25 09:00:36 2014 +0200

    fix person edit
routes: rename 'media_entries' to 'entries', 'media_sets' to 'sets' and 'media_resources' to 'resources'

also:

- adds redirections for 'legacy' routes
- adds to /doc: a Markdown table of GET routes for viewing on github (plus script to generate it)
Squashed commit of the following:

commit b2cb020771d6cb1ed631855fbe9148e1ef4adaa2
Author: Jonasz Grochowski <tensaioni@gmail.com>
Date:   Fri May 30 08:31:32 2014 +0200

    Changed links from admin to user interface to be opened in a new tab, modified media sets and media files link name/icon

commit c47cffa6dc6dccd44de380414e3edf168c811ee4
Author: Max F. Albrecht <1@178.is>
Date:   Thu May 29 14:18:33 2014 +0200

    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)

commit d20d3dd6a373dbaa80b5e3ab7bfd6d85d2cbc858
Author: Michał Podlecki <m.podlecki@op.pl>
Date:   Wed May 28 09:44:33 2014 +0200

    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

commit 11ef056dd96697eac326579836aae557b09d12b9
Author: Michał Podlecki <m.podlecki@op.pl>
Date:   Wed May 28 17:22:14 2014 +0200

    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