Don't conditionally register hooks

ExtensionFunctions are called whenever MediaWiki is initialized, but
the hooks will only be called whenever neccessary, so move the
conditionals (whether CentralAuth exists) into the hook function
itself.

Change-Id: Id61b9f57a71a4a7c7d06d6967826eaafabd31b40