Tweaks to make locating things by local identifier less crappy.

 - make identifier field a case-insensitive string
 - tweak test boost so it better reflects portal usage
 - add tests