Added support for RTF, HTML, and custom data formats

Fixes #143.
Fixes #152.
v2.0.0-beta.3