Fixed up proxy controller to support ports and authenticatiion.