Start to make the listener class sane.
Make indexnodes_listener a class.
Tidy up.
Something vaguely like a class for managing indexnodes.

Still lots of TODOs mind.
Re-order headers.
Don't build http or uri for now.

They're not finished and not used.
Make release target build again.

Mostly unused and unintialised variable warnings.