Fix `app.import`'s behavior in addons.

Also, allow `app.import` to specify the `destDir` for non-js/css assets.
Fix smoke test.
Merge pull request #1293 from rjackson/finish-1159

Fix up tests for #1159.