Fixed the following issues with the RW Json Svc Registry:

1. Prevented the case where service ids were generated as -1
2. Fixed duplicate updates to the service registry file.
Merge branch 'master' of github.com:Unicon/cas-addons