Resources refactor

Start for the structure of the new v2 refactor.  Doesn't include search or min/max filters on elements, that's for the next incremental round.