server: remove java implementation of server in favour of jni server
remove unused imports