An implementation of the JSON service registry that is able to write services back out to the resource. Added spock test.

Also cleaned up the way JSON svc registry detects service patterns.
Updated iml file