Stateful and stateless callbacks before send. Msg send void* parameter to pas argument for calback.

Added new tm callback which is called just before sending the buffer. Also modified the PRE_RAW_PROCESSING and POST_RAW_PROCESSING callbacks from script_cb to accept more than one callback(at the moment supports only one). Modified multiple modules to accept msg_send with one more paramater, which can be used to send a parameter to POST_RAW_PROCESSING callbacks.