Ignore test related files

Ignore test_driver, logs and result files.
Squash warnings
Cleanup headers
Lazy table initialization

Initialize tables as needed from init_listener(). This reduces the
dependency between the table and server modules.