LDEV-3688: Rechecking in as previous commit went into wrong JIRA. Converting NULL to 0 when no matching detail records are found - occurs when the user has completed the submit activity but didn't upload a file.
LDEV-3933: Fixing spurious submit screen that was appearing in the chat area, due to the base url being set for this page. Removed unneeded prototype reference.
LDEV-3933: The user/file lookup was failing when there were users but no files. Tweaked the SQL to convert the NULL (returned when there were no detail records) to 0.
LDEV-3959: Setting the cache on ajax calls in authoring, to ensure any javascript files come from the cache. Also fixed error that was stopping the condition up and down arrows working.