Lots of pants performance improvements.

- Replaced several quadratic algorithms with linear ones (in dep checking
  and exclusives checking).

- Faster zinc analysis file parsing.

- Other stuff.