Finished reply function

Decided to change returnJSON and returnError into one function called
reply.

Created a separate function figure out the return error messages.  Not
sure if I like them the way they are.  Might change their structure.