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.
Merge pull request #1 from TwentyGotoTen/master

Wired up related items functionality - Code only works with Sitecore v7.2+. Created branch v7.1 to support previous versions.