Added api/render support.
Corrected PHP NOTICE of unused variable while in DEBUG mode.
Merge pull request #17 from sendwithus/render

api/render support