Use base_path() in config.
Log chat lines to database.
Better defaults in config.