use correct transport for emit.
New length specification.
Updated makefile.
Merge branch 'master' into newlen
Added logs and stuff.
Added payload max length validation.
Added mode test stuff.