Travis::CommitCommand: refactor implementation to be DRY

Support all forward and backwards forms of command keywords
with a DRYer implementation.

Behavior change: After this commit, recognize the special
"colon" form both forwards and backwards.
IOW both [ci:keyword] and [keyword:ci].

Document the class yardoc-style.