Wired up related items functionality

The class did not respect the selection made in the "Publish Related
Items" check box. As a result, all publishes included related items.