Fixed dart-1.0 breaking changes. Replaced deprecated calls.
Merge pull request #12 from hyamamoto/dart-1.1

Update for dart-1.1 breaking changes