Use name attribute for resources and resource fields.
Use name attribute for resources and resource fields.

This fixes #8 in github's issue tracker.

okfn/datapackage-py,sirex/datapackage-py,datapackages/datapackage-py,okfn/datapackage-model-py,okfn/datapackage-model-py,sirex/datapackage-py,okfn/datapackage-py,datapackages/datapackage-py