Refactored InvalidError handling into a serializer concern.

Addresses #1977 by ensuring error keys have the same mapping treatment as the model attribute and relationship keys the errors apply to.

Supports #1984 and #1877 by moving the errros serialization into the serializer where it belongs. This PR should remove any concern for not applying all errors which have been sanctioned by the serializer to a model.