Move some code to the register() function.

The "auth" service might already be resolved at the time the boot() method is called, depending on whether any other earlier service provider does something with the service. This should be a little safer.