Permissions refactoring, intermediate for deploy on test

Squashed commit of the following:

commit 74af8d048a68098662b47ed91b2f981c5eb7a45d
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 25 16:00:30 2013 +0200

    Permissions refactoring, intermediate for deploy on test

commit abf0f59bc48c0b1dc2b8d5cab1c3035795b237a0
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 25 15:59:39 2013 +0200

    Showing numbers in of resources edit permissions and responsibilities

commit bb6bc8a903199f4f6b5d40d44f528d0d81555fc5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 25 15:20:21 2013 +0200

    Added transfer responsibility to media resource actions

commit c5406ad72558f83fd0c61099e637b56dafc58cea
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 25 15:08:35 2013 +0200

    Removed feature tests wrt permissions and responsibility

commit 95ba22a181ece27c3c6a573e11799d76ce7bb468
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 25 14:23:38 2013 +0200

    Finished removing of ownership from permissions javascript stuff

commit 094b113b6840fc81cf7e4e4da646fab81260c1e5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 25 14:17:34 2013 +0200

    Removing ownership from permission views

commit 739c83719ffd594fd516735fc797b4ef7473ae19
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 25 14:07:55 2013 +0200

    Fixed some specs wrt. ownershipt and loging when getting users

    via the so calle API

commit ded0ad497523782ec6cd3395e6b8689d36f28852
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 25 14:04:05 2013 +0200

    Styling

commit 52c5b7409c9fdbf5c2bfb97f9d7bba88c60bd449
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 25 13:28:49 2013 +0200

    Removed transferring responsibility from permissions controller

commit 156772f79b0e7ae635d9a0310cd46cd257a66cf8
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 25 12:58:13 2013 +0200

    Extended Userpermission.remove_irrelevant to owners permissions

commit e5215f0f93ad280c7010785997b6eccc4692a570
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 25 11:26:16 2013 +0200

    Extend destroy_irrelevant to userpermissions set for an owner

    some problem in the code ...

commit 13f03e4bd6f99dd105d28a94851a098bb01468db
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 25 11:15:02 2013 +0200

    Transferring works; but collisions permissions that should not exist

commit b7771a0b338acfee3045b4630451843546f38fa7
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 23 15:57:12 2013 +0200

    Working on the form for transferring permissions

commit da8e95ea3ee6005576e7120d9768b01100ab69c5
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 23 15:11:46 2013 +0200

    Refactoring and initial JS stuff for transfering responsibilities

commit ef198b42fe8e73713e77a527020d9f772159541c
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 23 13:54:49 2013 +0200

    fixed broken test

commit e59e68e4cee2c1b5cf95bf3eba524bdb65c77a72
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 23 13:45:25 2013 +0200

    Forward flash through media_resource show redirect

commit 224a0c7ff192797517e667f03133a68e1c49bc10
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 23 13:24:48 2013 +0200

    WIP

commit 8f2e63bedf2d75a661deb061e81f4f21b9168fdd
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 23 13:18:46 2013 +0200

    WIP

commit 67daeab9ecb1396b6e270f3cca5b15d12fb13944
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 23 13:17:22 2013 +0200

    WIP introduced :transfer in accessible_by_user permission

commit ff4af6b79179290ed0c6e86fedb3b46afd70410f
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 23 13:02:03 2013 +0200

    Started with resonsibilities

commit 7fd4251cf5bda66b3078fc24e509d7e4bf788098
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 23 13:01:50 2013 +0200

    Minor fixes

commit c8508cf006e1e46a8c50543709aec1d9cfeab3ef
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 23 10:05:36 2013 +0200

    Fixed step in permissions_02

commit 46de5eaaa5e56067a27333ee2be12a9a016a9572
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 23 09:48:44 2013 +0200

    Removed disallow specs (removed functionality)

commit 4dcf56e590ece926d5cfd981514c6f788d552ddd
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Oct 22 16:29:24 2013 +0200

    Fix parts of permissions_02 feature

commit 34245b7fa31dbb76aa5fcdc1e01d00919beb606b
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Oct 22 16:21:34 2013 +0200

    Fixed permissions_01 up to alert

commit ed7b2f9684ffcdcd6ce89a5c0577d4a776a49680
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Oct 22 15:15:40 2013 +0200

    Fix batch edit permissions

commit 6b231e5f2739a8f963a8e47be81276faa2a69fbc
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Oct 22 11:33:26 2013 +0200

    More view improvements and setting sensible back links

commit 016e90308803a26aae62d3fe5385b9b1e0975653
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Oct 22 10:13:58 2013 +0200

    Small fix and update view

commit 47129af9daac27aea652f64e29daa4f1b9a1ca60
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 18 15:23:26 2013 +0200

    Edit permission for one resource; refactored for collection

commit a76616a1e130ee7c0db0979792f7fe26af951b05
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 18 13:39:15 2013 +0200

    Feature tests batch_edit_permissions pass again

commit f131daeb8e64142a647e18e076c753902d618828
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 16 15:40:24 2013 +0200

    Improved view; refactored controller

commit 827557db0b1e19c9cdda3cb231d520aacee5c722
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 16 14:25:28 2013 +0200

    Updated URI.js

commit fb21bc412c6a8638995383595ca75a582d41a5fe
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 16 14:05:08 2013 +0200

    Resource selection; droping modal, styling ...

    * show the media resource selection
    * drop modal for permissions everywhere

commit 94ebeb12045a78b969b39da0aee03c738aef54d8
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 16 13:28:14 2013 +0200

    Added edit and unified view template

commit 7a65c44b017dfbfa1872c793ed6f5e7b76f982d9
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Oct 15 14:44:54 2013 +0200

    WIP

commit 48531510bf18ed0d964f6732dc74c28b35c88c05
Author: Thomas Schank <DrTom@schank.ch>
Date:   Tue Oct 15 14:26:21 2013 +0200

    WIP permissions ...