Keep channel open across requests

Was previously creating a channel per request, should have just been keeping a channel per apache thread.
This change checks to make sure the channel is open before returning it, if closed (or if nonexistent) the channel is created.