Display associated documents (so to speak) recursively - fixes #965

Removed cruft from ApplicationHelper