Added support for trait usage to collector (step 1 to implement issue #172)

The collected data is not yet used within the templates and on top of that requires a patched PHP-Parser (https://github.com/nikic/PHP-Parser/pull/141)