Fix issue with new REST service creation

- Scoping issues were leading to inability to resolve models and scope methods.
Merge branch 'hotfix/new-rest-service'

Fixes an issue with the "Create New REST Service" form, whereby scope was being
lost, and hence invalid data sent to the server.