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
Make schema generation aware of registered custom type

As in example with doco (SecurityRole>String) it would crack
currently in a moment you try to use autogenerated schema for POJO
for reasons like adding index.
Merge pull request #2534 from cstamas/schema-and-custom-datatype

Make schema generation aware of registered custom type
SQL: added function lastIndexOf
JSON: increased buffer to speed up import