Amazon resolves dispute with Hachette, allowing Hachette to adopt the agency-pricing model and set prices on Hachette books sold on Amazon.