Update RestController.php
Merge pull request #36 from Wilt/master

Update RestController to handle entities with $id = 0
Merge branch 'hotfix/36'

Close #36