Doc: start on API, some glue pages done, some cleanup