Base class and a couple functions added to the api.
Update to the PHP library to include all API functions.