Domains

Multiple domain support and better logging.