Added an optional `params` object to errorMessagesFor method.
Tabs to spaces.
Merge pull request #547 from dlochrie/master

Added an optional `params` object to errorMessagesFor method.