XMPP Gateway using Rails 4