serialize() and deserialize() functions created

Check for native or polyfill for JSON.parse() and .stringify() or keep the unserializated message.
Other handlings can be made changing these functions.