Simplifies window pool factory management in batch importer

by exposing a way to change the mode (APPEND/UPDATE) instead of closing
and recreating a new neostore. Also fixes an issue where there might have
still been queued write jobs not executed while starting to execute stages
that read the stores starting from the end.
Merge pull request #2781 from tinwelint/2.1-batchimport-ioqueue-issue

Simplifies window pool factory management in batch importer
Merge remote-tracking branch 'upstream/2.0-maint' into 2.1-merge-2.0

Conflicts:
	advanced/neo4j-advanced/pom.xml
	community/kernel/pom.xml
	community/kernel/src/main/java/org/neo4j/kernel/impl/api/StateHandlingStatementOperations.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/api/integrationtest/PropertyIT.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/core/TestConcurrentModificationOfRelationshipChains.java
	community/neo4j-community/pom.xml
	community/neo4j/pom.xml