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.