added crmRetrieve, modified crmSQL for json
Merge pull request #10 from siddharthg/smartyfunctions

Smartyfunctions