Allow older versions of algorithms to be referenced

Refs #9521
Add docs-test target to run sphinx doctests

Refs #9521
Use cmake variable to set MantidPlot used for docs build

This will allow us to use a package rather than a fresh build if
necessary.
Refs #9521
Merge branch 'feature/9521_sphinx_doc_directives' into develop