Generating full urls for CSS and JS resources.
Generating full url in copyrotate.php, if possible.
Generating full url for upload.php.
Generating correct url for uploadComplete with an invalid responseText.
Generating correct url for the album timeout action.
Moved some of the javascript code to a separate file.