Preserve package: imports in web ui generated code

R=jmesserly@google.com

Review URL: https://chromiumcodereview.appspot.com//14761006