Refs #9486 - Implement relatedItems utility and adapter

- Implement utility to extract internal links from text;
- Implement adapter to update relatedItems based on internal links found
  within context metadata;
- Fix all adapters to lookup brain's metadata and then document's metadata;
- Update dependency to beautifulsoup4;
- Update HISTORY.txt