Move debug definitions around.
Rework libtesla notifications.

Do everything through generic handlers and remove all dynamic allocation.
This is a *very* strange error.

Sometimes, snprintf() will write an address to the output buffer rather than the value we asked it to write. This is very strange, it only occurs on my laptop and it's fragile in the presence of, well, just about everything!