Abstract un-mockable PHP socket client calls

Summary:
* copy raw socket resources into array that server deals with
* make SocketClient wrapper to make basic socket interactions reasonably testable

Test Plan: started, connected, 'who', shutdown. no tests yet, needs a little more infrastructure

Differential Revision: https://phabricator.ericstern.com/D6