Started to add settings framework.
Fleshed out the settings page, changed some places to use saved shop name, moved a few chunks of code around and improved commenting.