refactoring of sources and formatting them according to official JBoss ide configuration

No new functionality is added at all.

All changes are related to formatting according to official JBoss IDE configs (1). Whitespaces removed, removed unused imports, comments refactored, word order is changed where it is appropriate. Licence is added to pom.xml as well.

(1) https://github.com/jboss/ide-config