Add away-notify support
Clean up away-notify patch
Merge pull request #448 from TingPing/awaynotify2

Add away-notify support