Rework conflicts system.

Add emitting of conflicts to a manifest.
Add loading conflicts from a manifest.
Add utility functions to operate with conflicts.
Make conflicts a hash table.
Rework and simplify conflicts detection logic.