Writing History at the Ottoman Court: Editing the Past, Fashioning the Future