listen to postmessages

This opens up integration for opencut generators to pass data for final
tweaking/gcode generation.

Note that it’s already possible to do this for just rendering.