use cStringIO
removed unused import
singleview: don't show line if field/widget renders empty string.
RelatedTableView: render accepts kwargs (passed to template),
can specify an alternate template in options
render related view: pass main entity as 'related_to' kwargs.
For example it allows to build urls related to main entity