fixed httpserver.r2py to work properly for Repy v2 and new unit test for it

filelikeobj is object of _httpserver_StringIO class and read() is calling this class's read method. It is handling the ValueError if the class object is closed.