PF-7595 Added support for file handling for the api client.  Merged from origin:
8909bd4ba1bac4ddcf660e40a9f005577bbcf330 - Added consumes and produces to php templates.
03abccd8e8fd850ce41356286fd826a40277502e - fix for #154
bcabb03225f5e7a1b734cf88f7c20e50b8451f42 - added support for nickname generation