Ported preferences menu to the Actions API.
Implemented Command Window Behaviour