Fix for the updated APScheduler (whoo - breaking API changes for no good reason!).
Lots of updates to the setup script.