Better local development with .localhost subdomains

How .localhost subdomains can help with cookie, CORS, and HTTPS issues when several local services share one machine.