Include protocol header in output
Fixed session identifier length
Made Android client multi-version compatible