Change for DM-984 to pass result object in the algorithms
Rolled out some commits made for debugging.
Fix failure in testPsfFlux.py

This failure was expected given the code changes on this branch; just need to
wrap some of the test code in a try block, which I've done via assertRaises.
Commits for review of DM-984
Merge branch 'u/pgee/DM-984'