** DO NOT MERGE ** Emit imports lazily

Note: in its current state this would break existing clients. We need a way to enable this feature on demand, or else go to a version 2.0 that is understood to be incomnpatible.