Command output parse

Allow parsing of stdout/stderr in the command module, so that things like `failed_when`, `changed_when`, and `register`/`when` conditionals are much easier, and more robust.

Based on fixes in #162