Chrome, assorted cleanups

(for issue #12)

Some large performance boosts (onBeforeSendHeaders changes), moderate ones (in onBeforeRequest), and small lint errors and fixes.

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>