Hijack api/* to provide a better error message in case of 404

#159
We should document this variable and delete it on uninstall.