Made it work at least

* Added a new field to fe_users for storing the module caller
* Set the default value to 'p'
* Added the necesarry settings to typoscript configuration
* Reworked the old existing function to be used with extbase