Merge pull request #38 from willyxiao/master

Fixing config for logout - ready to merge with master
fixed bug from previous commit
Merge pull request #39 from chrislimsv/beta

fixed bug from previous commit
Merge pull request #40 from scasBot/master

merge
Merge branch 'beta' of https://github.com/scasBot/i4
cases.php updated to model and 1 message left