Removed stupid rule for files

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Added core.cfg as injected service instead of calling it directly from
DI container.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>
Changed back the use of config, rules, permission and flags from file
based to app internal definition in app main file.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>