Task context, package distance

Implemented taks context to provide extended information about actions.
Implemented package distance for actions