Use accept header to choose pretty or plain printing.

closes #27