Added new html test pages.
Fixed a UI bug related to the context map.
Added a media type flag in the function for generating a thumbnail url.