ResourceGroupParser refactor

Stuck with the commented out tests failing.
Same behavior "from the outside" as it was prior the refactor:

1. Warn about duplicate resource definitions
2. Same URI check as marked bellow