Implement name reference resolver

Can now generate valid Swift classes and some unit tests for base resources. Advanced profiles, like the CCDA and DAF ones, are being skipped until the parser is more intelligent.