harness.py: make ProsodyCommand more flexible

This modifies the ProsodyCommand class to allow the input and
output formats to be specified. As such, the `diphones` test type
can be implemented in terms of this instead of a custom
DiphonesCommand class.