Class extraction

This uses regex to find ids and classes from an input HTML document. Regex likes to break so we might want to use a more robust HTML parsing library if this proves to be finicky.