Rename variables to be more descriptive and move code inside 80 columns.
Introducing major breakage: new hash is halfway implemented, currencies are there, but not fixed to show on the settings form. Also some debug watchdogs added.