Moving project to gradle java plugin default layout.

Also making unit-tests runnable from gradle test.