Add .gitignore
Attempt to refactor Jabber client

Initial attempt to refactor legacy Jabber client code.