Fix build with 26.0 and 27.0 SDK, update Debug build rules
Drop Gecko <24 and support Gecko 26, 27, and 28

This required a tweak to throw errors via JavaScript due to the demise
of nsIExceptionService.