GraniteDS OSGi

According to the thread http://groups.google.com/group/graniteds/browse_thread/thread/c8a251896f61599b.
Small abstraction in the goal to use GraniteDS with OSGi