Added rmi (Remote Method Invocation), and Connection

rmi is not working yet, and Connection needs to be done more safe