Add namespace to the options.

1. Added namespace and threadsafe to the documented options
2. Reorganized slightly to group compress related options and socket related options together.