Move check is item usable or not to separate method.

New method: itemdb_is_item_usable
Can be used as: itemdb->is_item_usable(item)
Update HPM hooks.
Merge pull request #415 from 4144/pcfix

allow add script to pet egg.