Android: Introduce many HTTP related functions

Most of it is at least partly broken.