Proxy support 2

Reference previous PR: https://github.com/urbanairship/java-library/pull/22