Implement dart_resources.dart for parsing, resolving and codgen for resource classes.

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//332933003