Use `Resource#singular` for determining class name

`Resource#name` can return a name or string depending on if the `:as`
option was used when drawing routes. `Resource#singular` always returns
a string and handles singularizing the route name.
Merge pull request #40 from ecbypi/update-mapper-to-handle-as-option

Use `Resource#singular` for determining class name