JSend PHP implementation. Read more at http://labs.omniti.com/labs/jsend