Split lib pcms_client into multiple standalone class files
Fixed class references, namespaces and PSR-2 errors