Now always using ajax load time in the files app

WIP: breaks the files_sharing app!
Refactored addFile/addDir to enhanced add() method + unit tests

- FileList.addFile/addDir is now FileList.add() and takes a JS map with all required
  arguments instead of having a long number of function arguments
- added unit tests for many FileList operations