Refactor CmdCallbackI into ImportCallback class

In order to prevent multiple IMPORT_DONE notifications,
the anonymous CmdCallbackI subclass has been turned into
an inner class which can carry state, specifically whether
or not an import response has already been produced.