after_login can now receive a context variable (usually the controller)

Provides the controller context to any registered after_login callbacks

NOTE: this is the same as #1961 for `multitenancy` which I would like to have merged soon :)

Entailed by WP [#15646](https://www.openproject.org/work_packages/15646).