Support importing from Data URIs

This patch adds support for importing content encoded in Data URIs. I've also added tests for utf-8 and base64-encoded URIs. There may be encoding issues with this implementation, but I'm not much of an expert. It works for the cases I've tried (omitting encoding, iso-8859-1, utf-8, and base64) so it may be "good enough" for a polyfill.