Only load resources in items editor or viewer. Fixes #73.