feat($rootScope): support registration of listener for multiple events

Adds support for registering multiple events within a single call, either as a
string containing space-separated event names, or else as an array of strings.
The same listener is registered for each name.

Closes #4432
Indentation doesn't look right...