refactored DEBUB/WARN/puts

    + error: puts("E:")
    + warn: WARN("W:")
    + debug: DEBUG("D:")
fix: msg_send returns 1 on succes, not 0
fix: register handlers before starting to gossip