Refactor binding.
Clean up js.
Refactor C++ code and remove socket watcher dependency.

Live capture now emits packets. The C++ PCAP wrapper is now closer to
the underlying C API.