replaces strings with Strophe-Constants
fixed parsing failure on XML Declaration
added fallback to bosh if WS is not supported