complete one round of variable size message handling. Few more
to fix..

Signed-off-by Ajo Jose Panoor <ajopanoor@gmail.com>