this package was built for easying the return of an api reponse, currently it returns only json,
but could easily support xml or whatever...
the use is easy:
->setRef(1) //defaults to 1, this is for the general api code, like 0 success, 1 data error, 2 auth error etc
->respond(); //and this returns the "Response" object currently JsonResponse