Fix issues with dashes in domain names (w/ test)

For runscope a dashed domain (i.e. abc-def.example.com) should be replaced with a double dash.

This also adds travis support, but feel free to cherry pick around it if unwanted.