Merge pull request #1223 from mproch/master

Flush OIndexManager on load to prevent loss of uncommited changes (e.g. during export)
OPLA: supported invocation of Java static methods
Minor: embedded records, improved management and errors in case non-odocument are used
Minor: embedded records, improved management and errors in case non-odocument are used
Minor: embedded records, improved management and errors in case non-odocument are used. Added test case
Minor: embedded records, improved management and errors in case non-odocument are used. Added test case
Reverted patch fe2598edd66747106a8555c4f8102df0aea4b01e by Maciek because caused a OOM during test cases
Updated history
Releasing v1.3
Minor changes to release v1.3.0
Ability to add replicas to local nodes was added.
Switched to release 1.4.0-SNAPSHOT
Added files in .gitignore
Stack overflow in replica update was fixed.
Merge remote-tracking branch 'origin/master'
1. Compilation error was fixed.
2. New replication tests were added.
SQL: fixed count function to return the total even as partial result

This is because some projections could depend by the count()
Minor: optimized code layout
DB export: in case of corrupted record the rest of records in the cluster are exported
gitignore for IntelliJ IDEA files