26902 Initial code review

Created a branch from the very first commit to be able to review the whole code written so far.
This does not mean that a merge should be done after the review is done, this is a "dummy" pull request.
Noticed that system is used to launch commands. Why not using Popen, using its list format call, which would escape  spaces, capturing the output and logging it ? Being able to see the output of the forked command would definitely help when debugging errors.