Make SpecialContributionsBeforeMainOutput hook more useful

The current id number is useless for IP addresses, so it now
passes a proper User object.

For context, the SpecialPage instance is also provided.

Change-Id: Ie196611d504b3969bcdfb5c589716af2f3c54e14
Merge "Make SpecialContributionsBeforeMainOutput hook more useful"