Move the apply rule handler to the Service class.

Refs #5878
Make the real object name available for use in templates.

Refs #5882