Overhaul application configuration.

Now prompts for settings if they are not set.
Simplified configuration file template.
New code file config.js now handles configuration.
Fix email formatting.