Partial Save of Reports

First try at implementing a javascript based save mechanism so that reports can be saved to disk via the client, without any access to /var/tmp etc.  Only appears to work with very small XML files....