Code doc, spelling.

Signed-off-by: enyst <engel.nyst@gmail.com>
Emailpost controller as a class

Signed-off-by: enyst <engel.nyst@gmail.com>
Fix constructor call

Signed-off-by: enyst <engel.nyst@gmail.com>
pre_dispatch() is the method called

Signed-off-by: enyst <engel.nyst@gmail.com>
Sanitize and use variables for superglobal variables, code documentation.

Signed-off-by: enyst <engel.nyst@gmail.com>
Merge pull request #494 from engelnyst/fixes

Code clean-up and refactor