Migrated MediaProxyResource to Apache HttpComponents.