move rmi interfaces and constans to commons project