Added extractPayload to warcmanager.py. Cleanup code.