mainly added very basic functionality of Permission-module; a few minor changes here and there

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>