Remove *.php from gitignore
PHP-1136: Allow custom cursor classes from command/query results

This commit also restructures the namespaces and some write method APIs.
Merge pull request #9 from bjori/php-1136

PHP-1136: Allow custom cursor classes from command/query results