Try to include referenced lines in lastlog

If any lines in a lastlog result have the simple pattern " foo: ",
that may be indicative of referencing a prior statement, so include
the most recent prior line including foo. In a future commit I may
extend this to be more selective in choosing said prior line as
well as possibly including more than one.