This is a fix that allows url params to contain populate calls, which
will reduce the number of api calls one would need to make based on the
number of relations.

 - removed call to toString() in index base controller.
 - moved the json parse into a try...catch