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

nit: I prefer to put the code first and then put the functions it uses afterward. I think it is easier to understand the code if I can see what the function does and then dig deeper by reading the utility functions it uses.  So I'd recommend that you put showStatus() at the end of setAutoEnhanceState() instead of in the middle.

Note that in JS, functions defined with function statements (function foo(){}, but not var foo=function(){}) are "hoisted" so that they are visible and defined througout the scope.  That is: forward-references are always okay, if you use regular function statements.