Merge pull request #178 from danriegsecker/master

Compile error 'value' may be used uninitialized
Problem: encoding message with string uses printf

This might actually have some security implications if people using the
library are not avare of this and missuse _encode function. With _encode
function one can construct whole message in one go. Tricky part is that
if it contains string, there is no way to pass additional argument, so
one would expect that contrary to _set method, string is not passed
through printf function. Contrary is true and thus one can for example
call _encode(1, "%s %s") which will try to access not existing arguments
for printf as encode calls _set function.

Solution: Use _set("%s", str) in _encode.
Merge pull request #179 from miska/master

Problem: encoding message with string uses printf
Problem: no help if app uses bad client reference

Solution: flag client log prefix in bold so if application sends
any event to a destroyed client, it shows immediately in animation.
Problem: can't handle nested state inheritence

Solution: do recursive inheritance
Problem: client lacks detail for unknown protocol command

Solution: show command name in error message.
Merge pull request #180 from hintjens/master

Improvements to client and server generators