feature: added the "max_payload_len" option to the new() method to control the maximal payload size that we handle.
fixed a test case for mockeagain reading mode.
Lua coding style fixes.