Fixes to messaging and reporting

- Fixing messages interfacing with reporting security.
- Fixing reporting gateway to a lighter version.
Merge branch 'ws_dev' of https://github.com/diego-torres/SISOPREGA into ws_dev