domain/subdomain split done, code cleaned up, domain attribute now handed over to most objects