add emptyParent flag passing to custom delete, get and put methods

To distinct whether the url was /api/resource/subresource/id or /api/resource/id/subresource in custom methods
Merge pull request #38 from sheershoff/master

add emptyParent flag passing to custom delete, get and put methods