Fedding up with building message clients, I decided to do a backgroud process, used to send and receive XMPP and other stuff.