Extended groups api to return il

Hi,

this time PR contains 2 commits because one of them is just refactorization and it may not be perfect so it can be easly reverted later and changed.

Main commit extends groups/loans API method to return individual loans created from that group.

I will be happy to hear any opinions/thoughts/suggestions.
Thanks in advance.