Set content type based on file extension, enable remote doc tests.