Minor refactoring to create initialization/free and per-sess initialization
entry points into the forward and reverse modules.  Added state check
for backend authentication, for out-of-sequence clients (mostly for forward
proxy use cases).
Started filling in the error cases for forward proxying, and addressing
the implementation flaws/issues found.