Implement case-insensitive lookups + redirections

fixes #1