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.