Handle interfaces in the generate-externs task
Merge pull request #2643 from ahocevar/interface-externs

Handle interfaces in the generate-externs task