1. Update circuit reset timer to be 1 second
2. Detect connection reset with more reliable method.
Move implementation of 'direct' method from redsocks.c into direct.c.