golintfix
golint fix
rework endptmsg marshal code
fix hand crafted json string