chat::network, chat::app comments

Added a network class to the configuration and added comments to the
chat::app header file as well as thread-safety methods.