plotextractor: fix CLI parameters parsing

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Reviewed-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
plotextractor: process files of a record

* Allow to process files attached to a record, selecting them
  by format, docname or doctype (--with-docformat,
  --with-docname and --with-doctype)

* Fixed docname creation, removing special FFT control characters
  (semi-colon, colon).

* Enable to choose upload mode with --upload-mode

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Reviewed-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
WebSubmit: new Run_PlotExtractor function

* Enables running PlotExtractor on the current record.
  (closes #1506)

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Reviewed-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
plotextractor: more shell argument escaping

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>