The APU provides electrical power but only when there's fuel for it to burn. In the case of the Gimli Glider, it therefore would not have worked.
If we look at the case of Cactus 1549 [1], though, we see Capt. Sullenberger turned on the APU immediately after both engines failed. This has been hailed [1,2] as a good decision -- no doubt because the A320 relies so heavily on electronics for control and it could have helped them restart the failed engines.
Commercial jets certainly do also carry traditional batteries for various uses. Take the Boeing 787 as an example; its onboard batteries originally presented a fire hazard [3].
[1] https://en.wikipedia.org/wiki/US_Airways_Flight_15494
[2][PDF] http://www.ntsb.gov/investigations/AccidentReports/Reports/A...
[3] https://en.wikipedia.org/wiki/Boeing_787_Dreamliner_battery_...