Moved function to get presence string from type to stanza.c
Added -Werror
Moved private xmpp functions to connection.h
Moved caps_init() out of xmpp.h
Removed jabber_restart function
Losing connection shows 'offline' in ui
Added asserts
Small tidy up in connection.c
Use of const in connection.c