Revert "Remove plugin code and fix dependencies"

This reverts commit d1e5abffb9246640c41a16ec9c52af8a291d13f2.
Migrate server integration tests from gradle-ssh-plugin
Fix package structure
Merge branch 'tests'