Made the main extension not main menu dependant.

This permits to reuse methods to create nested menus.
Nested menus!
main: added ItemPool support.