Added zsock_t class (see issue #451)

Copied and modified zsocket. Added zsock_opt generator.