Wip ssot es6

Tried to upgrade SSOT to master (es6) but having issues with cyclical dependencies. Maybe @wycats and @igorT could give some guidance.