Added --replace, -O, and -i options for `match`.

Also added `replace` alias for `match --replace`.