Finished general settings scripts

Moved around some code that belonged to the old versions of scripts. At
the moment the edit slideshow page has no working JavaScript on it.