add api for workspace
add to file api
addressed comments
Merge pull request #38 from dart-lang/workspace

Add api for workspace