Code for RMI, not working because of security.

This code needs to be amended to work with java's security requirements-
policy files and codebases.