Android implementation for RunHTTPRequest() with C++ and Java unit tests.

... 
It's not as simple, variables should be freed only after they have been passed to Java or on this big function exit, not earlier.