Try to detect whether to redirect to https or http
Fix test
Merge branch 'master' into deployinfo-api
Change case class to only take source data as a parameter

 - we now calculate hosts and data within the case class
 - added some stubbing fixtures for making tests easy