Added PSR-0 based namespace support, added Composer and fixed some  warnings

* Composer.json file added; needed an orgnistation name choice hostnet for now suggestions welcome.
* PSR-0 PHP-Namespaced generated code, the old style is still possible using -p option
* Added Getopt support
* Merged some other fixes as wel