Kiran | # 743 | Handled more error scenarios. Moved all response creation to a factory.
Kiran | # 743 | Handled the case when the JSON posted to /xls URL is not valid.