Added module result to output as attribute for better integration with Symfony stack

Refs EXP-20576
CS edits for EZP-20576
Merge pull request #576 from blendinteractive/EZP-20576

Added module result to output as attribute for better integration with Symfony