Added base for rest calls.

courtesy of https://github.com/codepath/android-rest-client-template