Refactored Servlet functionality

and corrected server URL for email ratings call