Fix tests to use code as string
Add dummy resources to service
Add and rename some endpoints
Fix location of service query resource
Start refactoring of async register