fix content-length=0 issue when you specify the body as send parameter,
prepared some classes for event triggering of common events and the ability
to changing its variables inside those hooks (e.g. template content filters…)