fixed bug in domain subscription, improved domain configuration (but not finished yet), removed code dependencies from sugar and sugarjs