Feature/fix for supervisor

WIP. I'm still doing final testing, there might be more problems.
For future reference, ISO8601 is the specified format for serializing Date() objects to JSON, so you could do `%j` for the date here instead of manually doing `toISOString()` above.