Fix local url host for IE. Add ALLOWED_HOSTS check.

Fixes #20