Added ChatUser::createOnlineSession(), cleaned up IndexController.php