Media attribute support

Added media attribute support, to support conditional loading of HTML files, based on Media queries.
Hopefully, this commit would merge without trouble.