[TASK] Code cleanup

cleanup PHP code according to recent Flow CGL
[BUGFIX] Empty request body before sending it

This is a work around for http://forge.typo3.org/issues/51763