Emit error codes when reporting diagnostics.

Addresses part of issue #506.

Before:
```
file.ts(1,6): ';' expected. 
file.ts(1,11): ';' expected.
```

After:
```
file.ts(1,6): error TS1005: ';' expected. 
file.ts(1,11): error TS1005: ';' expected.
```