OScheduleHandler support both plocal and local database
Add protection incase database accidentally close
Add API to covert ODocument to HashMap
Fix issue function in OClassTrigger cannot trigger other function in OFunction class
Merge remote-tracking branch 'nuvo/develop' into develop
Support ThirdParty Javascript Library
Support ThirdParty Javascript Library
Support ThirdParty JavaScript Library
fieldValues() method not necessarily returns values in the same order as fieldNames(). Replace values[i] with this.field(field)
Remove this.db = database
put back line this.db = database;

Because OScheduler is running is separate threads. Pass the database object from the main thread which database initially created.

Each OScheduler thread holds a separate schedule job. The database will be set to its own thread in run function :
ODatabaseRecordThreadLocal.INSTANCE.set(db);
SystemClassLoader to Class.forName

SystemClassLoader not work when running on junit or command line
Align with latest code
Merge remote-tracking branch 'nuvo/develop' into develop

Conflicts:
	core/src/main/java/com/orientechnologies/orient/core/command/script/OCommandExecutorScript.java
	core/src/main/java/com/orientechnologies/orient/core/record/impl/ODocument.java
Merge remote-tracking branch 'nuvo/develop' into develop

Conflicts:
	server/src/main/java/com/orientechnologies/orient/server/schedule/OScheduleHandler.java
sync with remote develop branch
in distributed mode, remote database instance lost login user information.
Merge pull request #1733 from henryzhao81/develop

Merge local develop branch to remote develop branch