Fix date handling in popup

- A typo was causing the createDate not to be set properly for new
  domains.
- Modifying the settings object in the scope was preventing the popup
  from closing when creating a hashword for a new domain. Instead, copy
  the object, modify the copy, and save that to local storage.
Bump version number to 0.4.0