implement functions for reading/writing to a FILE* stream in ewget library, instead of dynamically allocating memory for entire page (though the old API for that still works fine)