added rmi endpoint, refactored http endpoint into a separate project