moving handler into main to later avoid globals with closures. also DefaultServeMux is redundant
moved monitor loop above main, main should always be last. renamed monitor loop to supervise, as it is the core functionality of docker-supervise