fixes the default value for unit
few bugfixes on the chain protocol implementation
refactor to support the use of quotes and quoted strings by the ui<->hmi protocol