First import of power related changes from the old SVN tree.

We compute:
 - power distribution
 - AP/NP/VI