CMS-3365 Create generic module resource lookup. Added tests for layout descriptor.