Import: Cleanup header by removing LQT magic word and adding template

In support of this, the script user Flow uses (for this and for
ensureFlowRevision) has been made to actually exist.

Change-Id: I45b140358c32196018159cfc0c6cf0d7f16e339a
Merge "Import: Cleanup header by removing LQT magic word and adding template"