tpeden/express-resource-new — pull request #6 by phillipj (2013-09-10 19:56:41+00:00)
Title: Fix for parameter names containing slash

Hi,

I'm grouping my controller/resouces into subfolders which got me into trouble.

Something like
```javascript
app.resource('admin/users');
```
would result in default id-parameter `:admin/user` which is not a valid parameter name.

My commit fixes this by using the last part of the resource name as parameter (ie `:user`), instead of the whole resource name.

Replaced express.createServer() with express() along the way to get rid of deprecation warnings aswell.