Merge pull request #1 from a3gis/master

Error handling improvements
split network package into multiple files
improved client buffer
Use close_conn(ctx, client) instead of client.Close()