Added priority migration
Added priority to api
Added priority to API docs
Added priority to codem script
Added ordering by priority to scheduler
Fixed typo