Added lock to prevent overlapping writes.
Added plugin that allows sending raw messages from the console for debug purposes.
Beginnings of the model plugin (IRC protocol abstraction).