[fix] io layer memory management

Conflicts:
	src/libxively/io/posix/posix_io_layer.c
Merge pull request #85 from xively/fix_connection_close

[fix] io layer memory management