preliminary implementation of script "shoot hooks", see http://chdk.setepontos.com/index.php?topic=11081.msg108530#msg108530 for discussion