Update RestController.php
Merge branch 'hotfix/39'

Close #39
Merge pull request #36 from Wilt/master

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

Forward port #36