MIX: Walk the ancestor tree for powerful features.

As requested in https://www.w3.org/Bugs/Public/show_bug.cgi?id=27302,
this patch adjusts the powerful features algorithm to accept an
'ancestor flag'. If set, the algorithm will only return "Allowed" if all
of a document's ancestors would return "Allowed".