Detect invalid URLs and show meaningful error page instead of internal
server error.

Fixes #2
Emergency codes support