Support for custom error and confirmation msgs.

Now the keys of the error and confirmation messages
are stored inside attributes so they can be over-
written by subclasses.