[Quality] Improve code quality :
   - Replace e.printtrace by Logger.log
   - Put ESIndex error message in the .properties
   - Manual close stream
   - A some log before rethrows exceptions
   - Some javascript checkstyle