[WIP] Settings api cleanup

Progress so far on the settings api changes of the GSoC project.

- [ ] Settings new api
  - [x] Settings priorities
  - [x] Backward compatibility support
  - [ ] Freeze support
  - [x] Testing
  - [ ] Documentation
  - [ ] Interface unification across code