Comments/whitespace/import cleanups.
Add some TypedHandler tests.