Only show copy API endpoint button if Flash is working

If flash isn't present/working then clicking on the button silently
fails so hide the button by default and only show it if flash is
available.

Fixes #622