Add /history N to show last N messages. + some fixes