Added scope support for providers and blocks

Perhaps this could all be merged in to a shared base class for JSObjectionProviderEntry and JSObjectionInjectorEntry.