Add factory methods
Merge pull request #49 from dart-lang/factories

Add factory methods