Renaming name property (back to) code.

When trying to integrate the version 1.2 it became clear that we quite often end up comparing it to the errorCodes map, and in this case the "name" property is counter-intuitive.
Merge pull request #5 from jmosbech/master

renaming "name" property to "code"