added affinity config to proxy server

Change-Id: I1a7763caf83afe102a5904befa6010e252e06374
changed app.ring.get_nodes to use the app helper functions

Change-Id: I0fa209ecddc4f728e868b93cd0d73ab97c30850b