Added feature to notification, refactor BOSH.js, SimpleJSON.py