fix preamble.h, add advanced apis, add auto-linking of api items to wiki snapshot