added getSubDomain to $util.
added DEV_DOMAINS constant to define what domains are used for testing..