Yeah fixes

Fixed a bunch of piddly things in the upgrade script, not sure it will run yet but at least it has fewer errors and the html/css is like the install script :p 

Fixed various small issues in the upgrade script. @eurich I was not sure exactly what was needed for the .elk change, so the updates in that area need to be removed ... right now all it does is rename the files that it finds.  The original code looked to redo the hash as well?  Also I'm pretty sure that the db work outside of upgrade_query needs to be done as $db and not $smcfunc stuff .. the install and upgrade scripts are mysterious to me :innocent:  (note that the upgrade script always says wrong password on first entry, have not tracked that one down)

@emanuele45 I moved the relative time script you had in scripts.js to the jquery plugin file and then called it from themes.js inside of the existing onload event.   Using onload inside of script.js made it want to fire and in some cases that file was included w/o jquery being loaded so it would fail.  So I guess its best to leave that file as a subs style so to speak.

Then I fixed one of my bone head mistakes