Link users in Loan History to profile pages

Also, don't display the loan history section at all unless there is
history to show.