Work on Nails installer and rewind on email configs

- Installer now 50% works (i.e sets app and deploy files correctly, still to install modules and migrate DB)
- email configs are back in the deploy file