Set domain in base initialize

This fixes things like sending email
Merge pull request #14 from gabriel/patch-1

Set domain in base initialize