Use httpcontrol library to manage timeouts

Instead of maintaining that code here, let's just use a library.