Build OSGi bundles with Gradle

Joel says: the `DotifyShared` solution for managing dependencies should be deprecated anyway.