Fix test failures due to exit messages.
Refactor match function to bootstrap module.
Make UDP broadcast version work.

This also adds an example escript for demonstration purposes.