What starts out as an innocent extracurricular project turns into a “cockeyed catastrophe,” as one of the lyrics in the world premiere of “The Homework Machine” puts it. The Boston Children’s Theatre ...