build.gradle cleanups

- clean up dependencies
- use logback for test logging
- tabs->spaces
- fix indenting
- add itest to test group
- fix gradle warning for deprecated task.add
Deal with edge case were VM is aborted/poweredoff during teardown