lazy load layers in an AMD and Lint-friendly way.
Merge pull request #63 from tmcgee/lazy-load-layers

lazy load layers in an AMD and Lint-friendly way.