[Core] Adds method "inherit" to Permissions Entity.

With this method, it is possible to "copy" the permissions from one entity to another.

(references gh-27, #5096)
[Applications] Adds Permissions awareness to applications.

* Adds PermissionsAwareInterface to ApplicationInterface and implement the
  methods in Application Entity.
* Modifies AclAssertion to make use of the permissions entity stored in applications.
* Modifies IndexController to make application permissions inherit from jobs' permissions.

(references gh-27, #5096)
Merge branch 'hotfix/0.10.1'