To answer the questiong
// Saves addon's non-default options as JSON object.
// WARNING: no escaping is done!
// Arguments:
// addon - addon who's settings must be saved
//
Core.settings.saveOptions = function(addon)
should do the trick.
To de-fsk (decompile) the fw.files you need:
fimware
dump (e.g. form the-ebook.org)
cramfsck to extracted the cramfs-image
phyton 2.6x - not the current 2.7
dfsk (boroda-version)