Mark Twain's San Francisco was no longer a scrappy goldrush town,but a bustling financial metropolis