Switched to using copyfileobj.
Added XML-based configuration for server.