Pass errors as Error instances rather than strings.
Merge pull request #106 from papandreou/errorInstances

Pass errors as Error instances rather than strings.