Enables link from actor to deviations

Also contains various bug fixes.