NOJIRA - Importer fixes and pass import event to import plugin

* PHPStorm picked up a number of undefined variables and missing parameters so I have included fixes for those.
* I also wanted to use the import event and importEventSource in a data importer plugin that we've been working on, so have passed that into hookDataImportContentTree.

* ncurses_refresh() requires a character to refresh. Took a guess and it seems to work
* vb_use_ncurses was always false.
* ncurses_init() has a void return.
* $vn_c not defined when trying to parse idno. As idno cannot be multi valued I pass an explicit null (which is what it would do anyway)
* $vn_index is not defined for $va_item['settings']['delimiter'] on line 1899
* Also pass the importEvent and importEventSource to hookDataImportContentTree

Conflicts:
	app/models/ca_data_importers.php
Oops looks like the mapping got dropped - putting it back in now