add osgi support
Merge pull request #20 from Zubnix/master

add osgi support