isolate the parent item search stuff to the item_input php rather than
to every script that imports search.js (which actually is every script
currently)
moved functions purely for html rendering to non lib, and added utf8
encoding to the select so that json encode would always work even with
non standard characters in title.  Also added title mask config
changed to only search for parents of the same item type. TODO - may
want to make this a configuration item.
further refinements to support adding a specific item instance as
parent, now that the select list actually includes the # instance no
title mask.
re-enable the theme image support for finding the image just based on
name (not extension) if the image asked for does not exist, but one with
the same name but but different extension does exist.