core: allow changing the priority at runtime

~~Untested.~~ RFC.

Closes #198.
Dislike to both. :)