Updated code to use cached consensus document.
Merge branch 'pipeline_refactoring' of https://github.com/nskinkel/oppy into pipeline_refactoring