Changed the top-level API to avoid circular references.
Tagged as v0.2.0 and deprecated previous versions.