Add PHPMD to build
Add tests for Message
Add bugfree config and fix warnigns