I really hate perl, really, but sometimes it really does its job well.
Here is the result. It’s far from perfect, and the code is ugly but it does the trick. if I find some motivation another day, I’ll probably add new features besides accounts summary.
EDIT: link was broken, it’s fixed now.