Add exporting code to libanki