lib/socket: intro of the socket module and examples

Signed-off-by: Matthieu Lucas <lucasmatthieu@gmail.com>