Add registry of dht query names extensions are interested in

Make extensions register the query names they with to receive to
reduce dht message processing overhead.
Allow boost-link to force dynamic linking to the system boost libs

Most linux distributions only ship shared libraries for boost so this is
needed to allow building the examples on linux.