Workflows/Contacts classes

Added classes for workflows and contacts. Also updated example.php with new tests, and added methods for JSON POST requests to baseclient.