Some cleaning and groovifying

Using final groovy properties `someJavaProperty` instead of `toSomeJavaproperty()` method, making classes more POGO. Not deleting any  old methods (compatibility must be respected), but deprecating them.

Adding some Groovy imports (using the 'as' operator)  

If it's ok with you, I can continue to do it in all the packets