Refactored GemFire demo and added to the REST API