Upgraded PHP API client library to 0.6.6 (which enables XE8 features), s...

...ome small code style cleanup