Allow loans from loan alerts to be exported as a CSV

Re-opening Ben's recent pull request with some additional requested changes.