Bug 1042319 - [Gallery] Update gallery edit UI r=djf

It seems weird to have these sepecial cases for the back/cancel button here in setEditTool. Could you just have an onBackButton or onCancelButton function (or something similar) that either calls exitEdit() or cancelEditTool()?