gate as line, save gate, generate and store json on upload

loading of tracks is much faster now
+ load first available track to replace dummy data