fix error 500 on inventory with deploy tasks enabled

When an agent ask for its tasks on the next inventories, machineid is set and deploy task
were not filtered out from old communication protocol.
enable mirror and filepart code

- json data stored at creation are not sufficient and needs reworking at agent's request.
- mirrors have been reenable.
- filepart class is a static class which only look and server files request.
add missing filepart request

I had to reorganize switch because there is no machineid arguments for getFilePart requests.

It still needs a fix for setStatus because taskJobs will not stop otherwise.