Fixed memory cleaning of global variables. Issue #3085
Fixed compilation problems
fixed issue #3095
Issue #3093 was fixed.
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop
Fixed issue #3085. Provided MT test case with functions and pool
Tests failure was fixed.
Minor: fixed JavaDocs
Changed emails into -at-orientechnologies.com
Restored upload of distribution
Issue #3096 was partially fixed.
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop

Conflicts:
	core/src/main/java/com/orientechnologies/orient/core/db/OPartitionedDatabasePool.java
fix bug on wrong trimming of binary serialized record. issue #3098
Old format of role for documents was restored.
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop
Comment for database open was updated.
Added support for token based authentication supported via a plugin mechanism.

Conflicts:
	core/src/main/java/com/orientechnologies/orient/core/db/ODatabase.java
	core/src/main/java/com/orientechnologies/orient/core/db/raw/ODatabaseRaw.java
	core/src/main/java/com/orientechnologies/orient/core/db/record/ODatabaseRecordAbstract.java
	core/src/main/java/com/orientechnologies/orient/core/metadata/security/OSecurityNull.java
	core/src/main/java/com/orientechnologies/orient/core/metadata/security/OSecurityProxy.java
	core/src/main/java/com/orientechnologies/orient/core/metadata/security/OSecurityShared.java
	object/src/main/java/com/orientechnologies/orient/object/db/OObjectDatabaseTx.java
	server/src/main/java/com/orientechnologies/orient/server/OServer.java
	server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/OHttpRequest.java
	server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/OHttpUtils.java
	server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/ONetworkProtocolHttpAbstract.java
	server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/command/OServerCommandAuthenticatedDbAbstract.java
Added support for token based authentication supported via a plugin mechanism.
updated to the last version of the user managment, fixed some java8 dependency
reformated jwt source code with the orient formatter