Bug 583379 - Remove allowevents checking. Add dynamic menu building during getItem. New mutt test added. r=hskupin
(cherry picked from commit e89223e10a8f5a5e7a73d5d4ac66e9ffb779aece)