Inline leftover styles provided via external_styles

Now any styles provided via the `external_styles` parameter that cannot be inlined (the second return value from `_parse_style_rules`) are added to a `<style>` tag in the `<head>` of the document.

Unit tests update to reflect this functionality.