Make bibref query case-insensitive

See commit messages for more details.

This addresses tobie/specref#22
I think it would be a bad idea to do so because html is the living standard and not W3C’s version thereof. I really don’t want to get into the living standard discussion now :-) So can we simply leave it as is for the time being and fix it later if it really turns out to be a problem? I strongly doubt it ever will.