Adds callback function parameters

this enables each and every user of the package to specify
- the cache clearing function
- the locale changing function
- the function to display the username in case the auth value would be
an id