Support for getting recent objects using <inline>

Change-Id: Iad9e2104f5f807aa4c089cce602b007927079582
Actually make render_inline render safe HTML

The mark_safe call in inlines.parser.inlines() does nothing
to prevent BeautifulSoup from escaping the string rendered
from the templates. Instead of replacing soup elements tags with
strings, a soup should be created from the string rendered from
the template.

Change-Id: I98264cbea0fa7c768fd99eba7aa4bc95730c4950