add support for component status querying

This is most useful for the components themselves since they can inquire
about their dependencies autonomously.

Signed-off-by: Jan Dvořák <mordae@anilinux.org>