Initial implementation of the OSGi Repository 1.1 functionality.

Includes unit tests.