massive refactoring, for supporting simple resources aliases and inline parsing of dimen and color