api.php now outputs JSON, not tested yet
Merge pull request #3 from cesarramirez/master

api.php now outputs JSON