Multiple Domains and Magento Run Codes

Replaces #5 and should solve #6 

I'll need to do a little work to take into account the scenario in etailer/etailer-magento#16