Disabel API references if API disabled

This will turn off displaying any API references and links when API was
turned off in the configuration.

Fixes #467