Implement a simple shared lazy loader.
Merge pull request #8088 from KevinGrandon/shared_lazy_loader

Bug 841251 - Implement a simple shared lazy loader.

Official r=viven, thanks to mozsquib, rwldrn, asuth, daleharvey for feedback.