Mostly implemented InvestInLoan() API. Need to parse server response still to determine success or failure.