More changes towards the API subsection
Change default latex paper type.
Update the API section stylesheet conditional to reflect the moved API section.
Clean up tmp directories when done, and build some menu items.