We make schema snapshots during index manager lock only on not-closed database.
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop
Issue #2901:
1. Storage is closed only in case it is proxy storage.
2. In pool storage is always kept open.
3. During pool close all storages are closed.
Fixed issue #3037
Issue #2901 minimum pool size was changed.
Issue #2901 pool performance was improved up to 255 000 ins/s in benchmark.
Fix for issue #3042: incorrect shutdown in embedded mode
Fixed issue #3005 even if test case is missing
Fixed compilation problem by restoring class import (no wildcards)
Fix of loading OrientDB in JBOSS env by avoiding direct use of com.sun package.
Issue #2901 pool factory was added to cache connections for many users at once.
fix failure of index for not existent rid in case of distributed.

Conflicts:
	core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/record/string/ORecordSerializerCSVAbstract.java
Fixed missing storage.close() call in DB.close()
Improved BaseTest to work also in remote mode
Avoid call to document.validate() twice on save
Fixed bug on reusing user after further db open calls
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop

Conflicts:
	core/src/main/java/com/orientechnologies/orient/core/db/OPartitionedDatabasePool.java
	core/src/main/java/com/orientechnologies/orient/core/db/OPartitionedDatabasePoolFactory.java
	core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentTx.java
	server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/command/get/OServerCommandGetServer.java
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop

Conflicts:
	core/src/main/java/com/orientechnologies/orient/core/db/OPartitionedDatabasePool.java
	core/src/main/java/com/orientechnologies/orient/core/db/OPartitionedDatabasePoolFactory.java
	core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentTx.java
	server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/command/get/OServerCommandGetServer.java
fixed cached schema (client side) after database drop
Merge branch 'develop' of https://github.com/orientechnologies/orientdb into develop