Several improvements and SSL support (closes #2), stream_socket_recvfrom for stream reading was replaced by fgets