Reorganize and make a tiny library API.

This makes it importable and callable from Dart.
Fix typo in class name.
Merge pull request #1 from dart-lang/reorganize-package

Reorganize and make a tiny library API.