Add insert flag to priority handling.

Adds possibility to insert a new bag in the middle of the dependency
list of a group.
Describes how re-prioritisation are handled.
Includes some other misc editorial changes.