template import from zip entry stream

@zr2d2 here's what I did to get it to work e8217e5a043c86f8b160b5e0d50365526ecc1228  You don't have to merge it, I just wanted to show you that I had to init the @template and later set the media's file_size and file_data after the build call or they wouldn't take.