Replace usage of deprecated methods, clean logging

Two unrelated commits.

The library android-async-http is going to change the public API, the current code does not compile against the master. The first commit is fixing this problem.

The second commit clears up log messages produced by RestAdapter.

/cc: @raymondfeng FYI, there isn't much to review.