Added allowed origin to exception mappers, added a constant prefix to error text, and moved some constants into the common REST library.