Major code restructuration, improved file renaming/copying/moving.
Changed tests to pass recent changes. Problems only with 'test_forcefully_moving_disabled' and 'test_forcefully_moving_default', sometimes they pass and sometimes they don't. I think the order of processing input files is not always the same, maybe some change to test helpers required?