Pattern Library patterns used via data-* attributes

I wanted the ability to set the patterns from the Pattern Library via a custom data attribute. I've added logic to check for the existence of these custom data attributes using existing settings.