export: added JSON support

JSON support as mentioned in issue #23.

- It uses the XML document as the source and converts it to JSON. It uses 'xmltodict' to convert the final version of the document to JSON.
- Added new option to settings to define filename for the JSON output.