Optimizing imports, little fixes. Starting to implement scheduler REST API.