Verify packet intergrity with prefix / suffix

We had some weird issues with php only sending partial packets,
so now we are optionally allowing packets to be wrapped in (,).

If one is detected, the other must exist or a failure is reported.