Adding ability to disable the sites API functions

Addresses #467 and will fix upon merge.
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
Disable API on mobile theme if disabled
Merge pull request #482 from TheSerapher/issue-467

Issue 467