Update related count logic

• Added config settings.yml for global settings
• Fixed issue where related results was only returning 2 results even if there were more related results. Instead, changed it so that it returns the minimum between a) the related results and b) the default for maximum results returned set in settings.yml.