Add set/get socket options. Add simple socket test.

Signed-off-by: Alex Brem <alex@fluktuation.net>