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
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.
Revert of "Remove non-versioned elections (2602)" pull request
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
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
Add build option to skip Cypher module

If -DskipCypher is given on the command line all the Cypher related build will be skipped
Merge pull request #3042 from oskarhane/send_all_but_commands_to_server

[2.0] Browser: Everything not starting with 'cmdchar' is cypher.
Move the refcard in under the manual.
New Grunt task to serve dist build
Fix to remove the js error when opening/closing frames.

TypeError: undefined is not an object (evaluating 'val.replace')
These js files are still included unless they are
comment out with //- or completly removed.
They should not be there in the first place.
Affects browser < 2.2.
Merge pull request #2849 from jakewins/2.1-cache-config

[2.1] Introduce cache.memory_ratio configuration for HPCache
Merge pull request #3076 from jakewins/2.0-gc-logging

Improvements to the application pause monitor.
Merge branch '2.0-maint' into 2.1-maint

Conflicts:
	community/browser/app/scripts/init/commandInterpreters.coffee
Merge pull request #3114 from lutovich/2.1-rolling-upgrade-from-2.0

[2.1] Revert of "Remove non-versioned elections (2602)" pull request
Updates changelogs for 2.1.5
Merge pull request #3131 from davidegrohmann/2.1-skip-cypher

[2.1] Add build option to skip Cypher module
Fixes issue recognizing inUse of dynamic record

the check looked at the whole upper nibble of the inUse byte and expected
it to == 1, which means that it would not recognize it as inUse if any
other bit in that nibble was set.