split up parts of connect() in bosh and websocket
split up parts of connect() in bosh and websocket

minddistrict/strophejs,damencho/strophejs,ggozad/strophejs,teambox/strophejs,processone/strophejs,damencho/strophejs,Voiceworks/strophejs,diegocr/strophejs,joachimlindborg/strophejs,minddistrict/strophejs,adozenlines/strophejs,damencho/strophejs,m800-limited/strophejs,ggozad/strophejs,processone/strophejs,m800-limited/strophejs,Voiceworks/strophejs,joachimlindborg/strophejs,teambox/strophejs,Rom4eg/strophejs,teambox/strophejs,Rom4eg/strophejs,diegocr/strophejs,diegocr/strophejs,sualko/strophejs,processone/strophejs,minddistrict/strophejs,Rom4eg/strophejs,sualko/strophejs,strophe/strophejs,joachimlindborg/strophejs,sualko/strophejs,adozenlines/strophejs,strophe/strophejs,m800-limited/strophejs,ggozad/strophejs,strophe/strophejs,Voiceworks/strophejs,adozenlines/strophejs