Updated to use Spring for Android's rest client.