big optimization run

* jinx_query_rack is now much faster
* added ngi_get_associations_by_regex to eliminate a case where people use 'ngi-hostmgr show'