ui: view permission: only show 'transfer' and 'edit' button if action is allowed for user

delivers [#62230654]

Squashed commit of the following:

commit 02bf6dca8e6f74d4ff4d23240c8137860305cb19
Author: Max F. Albrecht <1@178.is>
Date:   Thu Mar 13 19:15:57 2014 +0100

    test: ui: Viewing permissions of resource I don't own doesn't show me edit permissions nor transfer buttons

    part of [#62230654]

commit 4079d86e49192d0ca3caf1eca72ee355ef79c811
Author: Max F. Albrecht <1@178.is>
Date:   Thu Mar 13 17:09:53 2014 +0100

    ui: view permission: refactor

    part of [#62230654]

commit bc79aa21d2b3d834d7d696995f5b246ba9001bbd
Author: Max F. Albrecht <1@178.is>
Date:   Thu Mar 13 16:38:30 2014 +0100

    ui: view permission: only show 'transfer' and 'edit' button if action is allowed for user

    part of [#62230654]