More code restructuring. Created response messages table in database.

Now ready to process the uploaded XML for real!