Pass allow_{tcp,agent}_forwarding to classes

Right now the variables are hard coded in the class declarations; looks like the intention is for these to be passed to the class declarations.