Add support for configurable error element

This change adds support for configuring what error element you would
like to use. This adds a configuration option call
"errorMessageElement" which you can pass a string. Unit tests are
included.