Split out files' checking, clean up http stuff.