Split types.go into separate files.

This also renames the original server/client.go into server/proxy.go
Increased QUEUE_LIMIT

This avoids a potential full-queue a bit longer
Added a panic recovery to the main proxy loop.