Change the resources definition assumption

* strip the last param (cause it's not representative of a resource)
* get the resource name (assuming that is the last one in the url)

### Before

![Before](http://imageshack.us/a/img822/5202/hs99.png)

### After

![After](http://imageshack.us/a/img542/6082/iop8.png)