Add the ability to specify a different output format. Fixes #4.
Raise a ValidationError if we're asked for an unsupported format.
Merge pull request #6 from mikebryant/wip-4

Add the ability to specify a different output format. Fixes #4.