Added velocity monitoring to server.
Improve message insert using batch save.
Some changes.