add automatic dependencies for trl and AssetsVersion

these now will always get loaded
port away from Array.prototype.each which is not defined in ext4 only apps