Generate 'import' directives before the 'part' directives.

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