[FELIX-4640] Missing framework capabilities.

This commit fixes the issue. 
New unit test included.
Note that OBR still passes the OSGi R5 repository CT.


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1627285 13f79535-47bb-0310-9956-ffa450edef68