Massive code clean-up.

Apply new clang-format.
Remove more unused stuff.
Fix memory leak.
Build gperftools' HeapChecker only without ASan.

Also, make ASan configurable via GN argument.