Start work on warnings.

- Some scaffolding for reporting warnings (not enough yet, though --
  should be able to report a list of warnings with source-position
  indicators).
- Warn on variables/globals/arguments that are never read.
- Test warnings and errors a bit better.