Modified how domains and editions work.

Now supports sites that have the same desktop and mobile domain (beta.guardian.co.uk) and sites that have different desktop and mobile domains (all the rest including localhost/127.0.0.1).

Also better dev support for things like proxylocal (everything works except editions, I am not a magician).