Non-osgi sample of jaggr, jaggr-web

To implement status correctly, you should maintain a reference count of the number of times that getService is called.  Each time getService() is called, the ref count is incremented.  Each time ungetService() is called, the ref count is decremented.  Status will be false whenever the ref count is decremented to zero.