Introduce cache.memory_ratio configuration for HPCache

New set-and-forget configuration that specifies cache size as a ratio of the
old generation max size. Memory division across internal components of the cache
is handled by fixed ratios.

If any of the old config (now referred to as "advanced config") is set, it will
override the memory_ratio configuration.
Everything not starting with 'cmdchar' is cypher.

* Also remove old debug message
Change dest to 'fonts'.
Update Codemirror

* Codemirror 4.5
* angular-codemirror-ui 0.1.6
Fix Codemirror shortcuts

* Moving some keys from global listening.
* Move Codemirror keymap config to Editor class.
* Run $digest upon codemirror model update.
* Mac shortcuts fixed (Cmd-Up/Down/Enter)
Improvements to the application pause monitor.

- Use System.nanoTime() to remove false-positive from network time adjustments
  and other external factors.
- Don't track total block time, It isn't a useful metric and it was confusing.
- Have the "trigger" level be the max block time that's acceptable, rather than
  the max block time plus the monitor pause interval.
- Bump the default block time trigger level to 200ms
- Introduce a manual mechanism to verify that the monitor works.
Introduce an Exists predicate to be used in the absence of meaningful predicates on a node
Revert of "Remove non-versioned elections (2602)" pull request
Counts command now always writes the command type header

and will not even exist as a command in the transaction if the delta was
0. This fixes a problem where the reader, always expecting a command type
after a command log entry header to be there, failing to read that
command.
Fixes an issue with high id being too high after recovery

due to giving the IdGenerator the wrong highId in its constructor. It used
to give it fileSize/recordSize, but now gives it the highest inUse record id.

Also deduplicated 3 versions of rebuildIdGenerator, 2 versions of
figureOutHighestIdInUse (which was badly named btw) and some other
deduplication.
Merge pull request #3095 from tinwelint/1.9-fix-too-high-id

[1.9] Fixes an issue with high id being too high after recovery
Make predicate combination easy to change, and change it to assume dependence
Merge remote-tracking branch 'upstream/1.9-maint' into 2.0-maint

Conflicts:
	community/embedded-examples/src/test/java/org/neo4j/examples/AclExampleDocTest.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/nioneo/store/AbstractDynamicStore.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/nioneo/store/AbstractStore.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/nioneo/store/CommonAbstractStore.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/nioneo/store/PropertyStore.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/nioneo/store/RelationshipTypeTokenStore.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/cache/ReferenceCacheTest.java
Merge branch '2.0-maint' into 2.1-maint

Conflicts:
	community/kernel/src/main/java/org/neo4j/kernel/impl/nioneo/store/AbstractDynamicStore.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/nioneo/store/AbstractStore.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/nioneo/store/RelationshipTypeTokenStore.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/nioneo/xa/NeoStoreTransaction.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/nioneo/xa/NeoStoreXaDataSource.java
Make Muninn support Java8
Added notes on ubuntu 14.04 NPM, and MacOSX grunt for browser build dependencies
Jakub added fix for bug on card-459
Fix test DatabaseRegistryTest#shouldAwaitRunningQueriesBeforeDropping

Rationale:
It may happen that the threads in the test are not properly synchronized and
the one shutting down the db is faster than the first one to grap a reference to it.
Hence it might happen that the test fails.

Details:
- A new latch has been introduced to make sure that the thread are properly sunchronized.
- Test class has been cleaned up by introducing a @Before method.
- Fixed 2 deprecation warnings.
Merge pull request #3113 from systay/exists-predicate

[2.2] Another tweak of the cardinality model
Add build option to skip Cypher module

If -DskipCypher is given on the command line all the Cypher related build will be skipped