OSGI support. Fixes #98