Added support for reading the reference date from the emails
Code cleanup: the webservices dispatch code should not be setting up the data itself. The code was moved to a separate class to simplify maintenance