core: allow changing the priority at runtime

~~Untested.~~ RFC.

Closes #198.
Show it ;)