first somewhat working version of protocol/implementation doc generator

the result can be seen at http://jsfiddle.net/ZFYUC/embedded/result/