Facilitate handling email during development

Added the PHP_EMAILS constant. This is an alternative to ECHO_EMAILS that sends the emails from php. That way we can send emails during development, and it also makes it possible to use http://mailcatcher.me/.