Implemented FileService and samples
Merge pull request #1406 from benjamij/php-api

Implemented FileService and samples