Clean zhdk group metadata (LDAP)

Work on ldap_cleaning migration ...
Upgrage zhdk_integration gem for inst-grp renaming
Reidex media_resources after metadata migration
js: upgrade to bootstrap 3.2

- fixes some strange to find bugs caused by transitions
- modal handling now slightly less worse
- some test workarounds

Squashed commit of the following:

commit 86739985f049e2f90fa64b868fd7725d6f544f57
Author: Max F. Albrecht <1@178.is>
Date:   Mon Oct 6 15:55:17 2014 +0200

    ui: js: lib: modal: make more robust

    adds the 'shown' class *after* all tasks are done on the modal

commit 9161ce1f9acd77c964a1b94ba5429cd91e06f43a
Author: Max F. Albrecht <1@178.is>
Date:   Mon Oct 6 15:30:41 2014 +0200

    more stupid test fixing

commit 1221f4a05180d4ec0ea7bf8457c39537b49b8fb8
Author: Max F. Albrecht <1@178.is>
Date:   Mon Oct 6 15:08:42 2014 +0200

    js: #cleanup

commit 01fe669dd522b1929dfac3894f5d0a65b07e5db4
Author: Max F. Albrecht <1@178.is>
Date:   Mon Oct 6 14:09:45 2014 +0200

    fix a stupid test

    wait_until--

commit 4f9eb307524585a13fbec0d433bae282a868f2c3
Author: Max F. Albrecht <1@178.is>
Date:   Mon Oct 6 13:45:23 2014 +0200

    upgrade bootstrap event names (now namespaced)

commit 89993e2b17329ccd1a8e4e300e903929524f5cbc
Author: Max F. Albrecht <1@178.is>
Date:   Mon Oct 6 12:25:38 2014 +0200

    try upgrading ALL bootstrap

    should fix strange errors wrt transitions
Add queries for detecting to be mapped metadata
ui: js: meta_data: departments: filter LDAP groups with black- and whitelist

Squashed commit of the following:

commit 0c821020f7eb4dab8f4d71ca992361426f042d8a
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 7 17:13:24 2014 +0200

    make more defensive, only filter if there is data

commit d7e26a580c83a8240080820c428f426586df3787
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 7 17:02:56 2014 +0200

    cleanup #2

commit bd6a94c462943482c3651a90321c769b58d8c19c
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 7 16:51:23 2014 +0200

    cleanup

commit e2c63ac68a1252cf7127ddeb20dc628c3e04e7ab
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 7 16:01:05 2014 +0200

    implement filtering with black- and whitelist

commit 78a2cf9cc57a5277d5a929f04e004cda1049b0e2
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 7 16:00:52 2014 +0200

    add black- and whitelist

commit 6c0c0219d449f8b5ada478dbee806e45de8271e3
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 7 13:43:23 2014 +0200

    Revert "remove dead code"

    This reverts commit 75bbdb930bb3e0da774d4e8ef4d6b7080d0bef47.

commit c5facd1994fbbf448ae93ef58491581efb7621e2
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 7 13:42:20 2014 +0200

    remove dead code

    (possibly)

commit 61e7a353a807d458a88be57b16650eb11b489383
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 7 11:37:07 2014 +0200

    cleanup
Document alternative way to link mr to ms, me
ui: my: show 'vocabulary' section more consistently

Now the section is only shown and in the sidebar if there are any accessible resources in any context,
just like the listing itself does it.
Also fixes a double-nesting in the markup.

Squashed commit of the following:

commit 46228144daa34d3be076fe1eb39a49fabfa856f5
Author: Max F. Albrecht <1@178.is>
Date:   Wed Oct 8 12:52:45 2014 +0200

    fix container nesting

commit 356f0797584a9d358d339bb9aef0b62c98dfb3f7
Author: Max F. Albrecht <1@178.is>
Date:   Wed Oct 8 12:45:02 2014 +0200

    consistently filter context for all of /my

    only show accessible resources!
Add message for empty set hack
Admin mode: admin can delete a media entry

Squashed commit of the following:

commit 0b07a370bd239da9501988186d66440412bd86c1
Author: Michał Podlecki <m.podlecki@op.pl>
Date:   Tue Oct 7 11:12:27 2014 +0200