Added support to export via AJAX multiple tables into the same page.

Added support to export via AJAX multiple tables into the same page, in order to fix dandelion/issues#197: added the table ID to the *JavaScript export function name* created dinamically in *ExportManager.java*, as is described in the issue.

Also done some code refactor. :smiley: