Add HTTP Accept-based API endpoints. Thanks @kylef for the feedback!