Added a web view and pdf download for the invoices. Fixed several issues with the storing of invoice elements. Added automatic calculation of the invoice elements to the web and pdf views. Fixed up several minor details.