Move Priority class to framework-core
Refactor priority related packages
Add javadoc and finalise classes, fields and methods