Feature #3687 : updating slide show system for Gallery application

- adding full compliance with API token from REST Web-Services
- refactoring some code
- removing some warnings

THIS PULL REQUEST WORKS WITH AN OTHER PULL REQUEST OF SILVERPEAS-CORE PROJECT : Feature #3839 : adding token authentication by HTTP URL request parameter