Also implement locks for tasks that can have unintended side-effects if ran simultaneously. Other minor UI tweaks.
Also separate utils.ts file which was getting too big, and add a POST test