Added permission extension (as bundle, not fragment), added test cases
for fragment extensions

Signed-off-by: Jochen Hiller <jo.hiller@googlemail.com>