Add resource only when resourcepart in JID #152
Check for resource in unavailable presence handler
Added debug to connection handler
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
Check for NULL connection and context

fixes #155
Added /clear command to clear current window
Debug alt-backspace
Added alt-backspace support
Merge remote-tracking branch 'upstream/master'
Added alt-backspace key code for ubuntu
Fixed problem with using id attribute with apostrophe.

Needs a better solution, but the current one stop the crash
Tidied fix for id attributes that cause a segfault

fixes #151
Merge remote-tracking branch 'upstream/master'