Bug #4794 and #4766 : fixing Silvercrawler download and upload problems

- fixing several errors
- improving several treatments
- fixing severe security holes (by modifying request parameters)
- refactoring some code
- improving index management around repositories

Do not forget to check pull request on Silverpeas-Core...

Please to perform tests on a Server running on Windows and others on a Server running on Linux.