FSM debugging

For easier debugging of state machines I've added a couple of macros. nn_assert()s were replaced only in tcp transport so far, as I needed them there in the first place. Will fix other state machines later.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>