Feature/acp

Please do not create new functions files. Rather add an ACP helper service, e.g. acp/karma_helper.php.
This will also get rid of the globals here.