Refactored message handler SanitizeMessage() into command.js. Debugging socket broadcast issue.