Singledomain deploy

https://www.pivotaltracker.com/story/show/83970304
singledomain test client breaks on deploying site
a few things were missing for this to work