Spooler: task priority in NOT Linux OSs.

* Implementation of a custom scandir function call in order to deliver spooler task priorities in OSs other than Linux.
* Added some spooler tests too, currently not working in OSx due to *weird* signal handling.