started changing tabs to spaces in module files
Controller is no longer depending on $_SERVER to get headers which only works for external requests

Kudos go to @flyder who helped me finding this bug.
removed the obsolete return in before() method
added parent::before() call to the beginning of the method (hat tip to @flyder)
moved parent::after() to to end of the method (hat tip to @flyder)
finalised tabs -> spaces move
Merge branch '3.3/feature/tabs-to-spaces' into 3.3/develop

Conflicts:
	classes/RESTful/Controller.php