After years on the brink, the bookseller is going for a plot twist: Sales are growing and the chain plans to open some 30 new stores. Here's what's changed.