Added capability to load resources by pattern (fixes #18)