added invoice

added support for invoicing with the addition of invoice.xsd. refactored
common and order in the process.