Fixes Resources not to include an api twice when the api method is named index.

Related to latest discussion in #184

Caused by Restler which creates an alias for the api url with $api_url/index