Bugfix: Keep one bot session per jid
Added Ruby thread test
Merge remote-tracking branch 'pilfs/master'