API: impl. and tests custom urls and redirection wrt media_resources

Squashed commit of the following:

commit 6a63242d113da74c91c25d15793539cc2c757caa
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 25 17:14:56 2014 +0100

    Test and minor fix

commit e346ce1a35c604638ece0f6b2e3da006bed3ca47
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 25 16:24:37 2014 +0100

    tests ...

commit 400ee5dc0cb1a4a8fb364030461d657fe31430f2
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 25 15:20:19 2014 +0100

    ...

commit 6b54f0f9194e6d62f91c8019bc48ae0cf12518fa
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Mar 25 14:49:39 2014 +0100

    API: Hanling custom urls and general redirect issues
Unobtrusive inclusion of authorization_header for app_admin::applications#show
Filter allowed permissions consistently

Squashed commit of the following:

commit 9d5efccbec18cdedc18ccb22f66f27efa4e4d8b0
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Mar 26 14:20:14 2014 +0100

    Fix controller

commit d80f763870322b6e252a66877f1c80ddbc802fca
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Mar 26 14:14:19 2014 +0100

    ...

commit 96c221bdb4a40e6866b533feb63e41776b769dff
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Mar 26 13:51:43 2014 +0100
Compile assets for API documentation
remember url params between meta_terms' actions
fix broken feature tests
ignore .ruby-gemset file
additional feature tests for remembered params
add a reset button that clears all searching, filtering and sorting