Refs #9964 Fix a couple of bugs in Apply Corrections.
Refs #9964 Add unit test suite for Apply Corrections.

This should be moved to algorithm tests when apply corr becomes and algorithm.
Refs #9964 Refactor test.
Merge branch 'feature/9964_apply_correction_bug' into bugfix/9344_indirect_python_refactoring

Conflicts:
	Code/Mantid/scripts/CMakeLists.txt

Refs #9344