implemented pagination and sorting for loans api
Merge remote-tracking branch 'soc_anuruddha/mifosx-324-loans' into mifosplatform-1.1.0