Track active printing so that we only retract at end of print if we already primed at the start; parameterize leveling offset, and correctly incorporate in the offset in stored leveling height.