Improve priority configuration

This commit allows to configure the priority attribute with a place
holder. It also defaults to not change the priority at all if it is
not set. Update the Javadoc to indicate that the value can be negative
as well.