Squashed commit of the following:

commit 62dd0d7d0d8dad7b7c5b3e52d074f3a45505e095
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed May 7 16:26:54 2014 +0200

    refactor frontend field checkbox rendering