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

#159
We should use the contents of `'restful_hook_menu_base_path'`variable. I see that `'api/login'`, `'api/file-upload'` and `'api/session/token'` will also need fixing in this respect.