I like Amphetamine for keeping the system awake. I use the option to quickly set a time to stay awake until a lot. I like that I can choose whether it allows sleep or not when the laptop lid is closed. I know it also lets you create schedules and some other basic triggers for automatically starting sessions.