Fix up core a bit, add .hgignore for myself.