Make .static.storeHtmlAttributes more versatile

It now allows you to specify which attributes to preserve in various
ways rather than just setting true or false.

Removed unused factory methods that exposed the old value.

Change-Id: I914164adcf1f0e48fa3fa85277e68c72dbad393e
Merge "Make .static.storeHtmlAttributes more versatile"