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 https://github.com/opf/openproject/pull/1950 against `dev` for reference and travis. Do not merge for now!

https://www.openproject.org/work_packages/15646