updates to related_articles plugin

Added unique sorting and the ability to set the length in the config file.