Started resource rules & resource JSON parsing

Parsing mounts should be done.

Also put some thought into chosen resource management.