API improvements.

- Get job's parents and pipe parents.
- Get packets, that will be triggered when tag is set.