Documented most core code and the entire WSChat module, set up some basic plugin machinery and documentation.