mod_register_json: optimize and refactor code,
- Pre-emptively return on whitelisted mail domains
- Simplify consequentially the request callback function