refactor/fix django tag conversion

convert django tags to html tags first and put tag in 'dynamic' html
so we have access to the tags in the BeautifulSoup API. Easier to handle
spacing

is_dynamic is implemented for a tag and attribute and returns true if
and only if the tag name is 'dynamic'

TODO: test dynamic content in cdata and script tags