core (HttpProxy): add setCacheDirectory() method