added a onbeforeunload method to track when a user closes a window [Finishes: #75718274]
Merge branch 'master' of https://github.com/cbitstech/stepped_care_reboot