DHT events and test script

- Added events related to DHT network
- Added DHT related functions
- Added DHT Test script
- minor fixes