Remove thin and increase some ci timeouts

Raise timeout for permissions check

Increased timeout for batch edit permissions
Minor fixes for the api

Remove links to not yet existing documentation

Fix wording

Fix content_stream
Implement authorization check for api::media_entry get and download
Update doc/diagrams/Schema
ui: contrast-mode: enable contrast-mode via url parameter (for testing)
testing: adding instance of API:Application to the testing database
Enable Thin again (some bugs, but test rum more reliably)

This reverts commit e2e3fad5752f78c8af44d81a99a7a73c931f7a8e.
Fix: create pdf previews during import#upload; test, too

Squashed commit of the following:

commit 42f35fc34d32a14c782548c1ea9b878b05e184fb
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Apr 4 15:03:17 2014 +0200

    Require only 5 pdf-previews

commit d37071f78fdd0850747d4823d2d00770feaa6273
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Apr 4 13:42:44 2014 +0200

    Fix: create pdf previews during import#upload

commit 41f3308ad092f2c07f4fd2e426fa38527248ba05
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Apr 4 13:38:46 2014 +0200

    Added spec for importing a pdf
Map ids (uuid, int, url-string) in media_resources#index to uuids

Squashed commit of the following:

commit 4444d0580a528a1471320aaf6b43f08dbecba043
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Apr 4 14:39:46 2014 +0200

    Move to appropriate module name and use in the filter_opts

commit 199ee24899c99185acbf71d9bf1c29027617c9da
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Apr 4 14:31:27 2014 +0200

    Implement media_resource id convertor in  Concerns::MediaResourceId
ui: contrast-mode: assets:precompile css in production
Fix: accept scalar or array in media_resource.filter
ui: js: fix abstract slider for contexts; show preloader when fetching abstract data for contexts and sets

delivers: [#54092873]
Provide `rake madek:setup:dirs`
ui: visualize relations: make sure notifications are always cleared

delivers [#46758701]

Squashed commit of the following:

commit dd09b387658905f7b4236e0946529ef0c6479519
Author: Max F. Albrecht <1@178.is>
Date:   Mon Apr 7 16:53:45 2014 +0200

    ui: visualization: notifications: fix typo; don't unbind events; make remove() more resilient

    fixes [#46758701]

commit 012f8e38241f2835eb5becf4ae50d19cf4952a1a
Author: Max F. Albrecht <1@178.is>
Date:   Mon Apr 7 15:25:56 2014 +0200

    ui: visualization: fix button label (was nested in icon)
ui: admin: enhancements for API::Applications

delivers [#68176992]

Squashed commit of the following:

commit 187d1561583dabb860906ece5728d44f1ba31698
Author: Max F. Albrecht <1@178.is>
Date:   Tue Mar 25 19:03:52 2014 +0100

    js: admin: apps: refactor autocompletion

commit d763aa59abcade6aabc504812cfe28a47aaf860b
Author: Max F. Albrecht <1@178.is>
Date:   Tue Mar 25 15:19:13 2014 +0100

    ui: admin: users: make autocomplete_search case insensitive

commit 7b1ed53b324bfb687e833d637d4b00bb812dbd9a
Author: Max F. Albrecht <1@178.is>
Date:   Tue Mar 25 14:35:15 2014 +0100

    ui: admin: apps: add icons
Add ansilbe configuration to set-up production (like) environment

Squashed commit of the following:

commit 6364abe66049c9d65ab55ca12e98471fc3b6c055
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Apr 8 14:29:47 2014 +0200

    Done now

commit 0c98f7abc9de3312adae56d913276fdd57d76cd0
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Apr 8 11:43:07 2014 +0200

    More stuff

commit 827e0983e20cf0b99c8b11bf33a1a21936a4d859
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Apr 8 11:39:36 2014 +0200

    Improved pg handling

commit 88a1a0f9d670d0459aa0c068b98479fad63ba0be
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Apr 8 09:02:45 2014 +0200

    Yay kinda works now

commit 0ffb79af64280d885cc1a5956e77b97d03784fff
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Apr 7 15:44:52 2014 +0200

    Use next as branch and more

commit d423e9f65b2e0ebd7eca6f61a3b1f149f5d0674f
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Apr 7 15:30:53 2014 +0200

    Create madek dirs

commit 24f3fd2b8d7225b41e284c6a365b77299796c085
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Apr 7 15:07:35 2014 +0200

    Prepare deploy

commit 079b91b2ecb24cfae70cc1f60b5101a3834fd44b
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Apr 7 13:49:04 2014 +0200

    Install http-server

commit 031d0e25ff17689b0d98b71f3defe0a52af231c4
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Apr 7 11:34:52 2014 +0200

    Post rbenv installation

commit bb4dad078fca2fa896e5a4e564ef967236250bd2
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Apr 7 11:25:14 2014 +0200

    Ansible up to adding a madek user
ui: implement toggling contrast_mode for logged in users [feat. @DrTom]

part of [#61132882]
Set file permissions of imported file so that apache can read it

Fixes export in production environment
fix: check in new structure.sql from contrast_mode migration
fix: check in new personas dump from contrast_mode migration