Initial skeleton
Add travis config
Add phpunit config
Update class reference
Fix closing socket
Refactor tests into reusable components
Additional factory tests