Fixed router to work with query strings. Added 404 template.