Multiple changes to help unit-tests

*It is easy now to read/write a file with the tests: see BasicTest.cpp.
*Also made more meaningful usage of  kNatronParamFilePathIsImage
*Don't try any autosave in background mode
*Bug fix in QtEncoder…allocate a buffer of at least the RoI