Remove .hgignore
Reduce warnings by adding two `require`s and a `declare-function`

This addresses #105