Only load assets into memory while sending them to the Companion.

This should reduce the javascript memory needed for projects with a
lot of assets.

Change-Id: I55eda14204f4273a5d6c93cd221c98fd39ef054c