Refactor retrieving valid users from ids
Make sending messages thread-safe
Merge pull request #1 from delitescere/master

Thread safe sending, and small refactor