Lots of work on PHP wrapper for API and corresponding JS wrapper