Removed the need for a single currentProfile global but put the profile# inside the Settings object.
Some fixes in settings.js to go along with the change.