Add a few rewrite hooks and the API docs for them.