connection.py: Use periodic connection closer for timeouts

Re: chfoo/wpull#166
engine.py: Add OBJGRAPH_DEBUG env var for debugging feature.