Implement a per-task check_mode setting

This allows an individual task to be run in check mode, so that other
tasks can be made conditional on its result.

Author: Carlos Chapi <carlos@2ndQuadrant.com>