Critical Core Update

Improves several aspects of the core. Starting work of Chat system.