Get number of pending jobs from scheduler
Cleaner setup.py
Rewrite logging to store the data directly and not by queueing them