move render_html here from freedom (nee facebook_to_wordpress.py). also bug
fixes for atom rendering.