Created new generic stageful factory from ODynamicFactory
Merge branch 'develop' of https://github.com/orientechnologies/orientdb into develop
Fixed issue #2304