maybe_link_view takes something returned from the database - either some ordinary data,
or an object in a related class expanded by a has-a relationship.
If it is an object,
it constructs a link to the view command for that object.
Otherwise,
it just displays the data.

display_line is used in the list template to display a row from the database,
by iterating over the columns and displaying the data for each column.
It misses out the id column by default,
and magically URLifies columns called url.
This may be considered too much magic for some.

This takes an object, and looks up the related_accessors; this should give a list of accessors that can be called to get a list of related objects. It then displays a title for that accessor, (i.e. "Beers" for a brewery) calls the accesor, and displays a list of the results.

This tests whether or not the returned value is an object, and if so, creates a link to a page viewing that object; if not, it just displays the text as normal. The object is linked using its stringified name; by default this calls the name method, or returns the object's ID if there is no name method or other stringification method defined.