Removed pattern matching from go code and moved to lua plugin
Fixed blocking in message send
Removed debug code
Various trivial bug fixes with plugins