Impl. max parallel transfers

- Refactoring of queue to use actual waiting queue and running files
using FIFO pattern through push / shift
- Implemented a maxTransfer var that controls the number of file that
the running array can contain
- Implemented a waiting till running file array is full

This pull request is not meant to make something clean / merge-able but to propose a different implementation of queue datamodel to ease its handling.