Made connection free resources static function
Split connection_free_resources
Replace FREE_SET_NULLs with function call
Removed connection_shutdown function
Init and shutdown of libstrophe moved, free resources before creating