split out the generic dialogs.js + some minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
bugfix: now crop stack is reset on load...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
updated todo...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>