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.
[2.1] Print logs from flaky test shouldUpgradeDatabase().
Browser: escape server response to prevent XSS.

Fixes #2139
Revert: the restriction of types broke nested maps
Merge pull request #3014 from pontusmelke/revert-strict-type-checking

Revert: the restriction of types broke nested maps
Java subprocesses that we launch must be headless.

This is necessary for running tests on the build agents. This only
affects 1.9 because that runs against Java 6 where JMX insists on
starting up AWT even when it doesn't need a GUI.
Java subprocesses that we launch must be headless.

This is necessary for running tests on the build agents. This only
affects 1.9 because that runs against Java 6 where JMX insists on
starting up AWT even when it doesn't need a GUI.
Merge pull request #3023 from benbc/1.9-headless

Java subprocesses that we launch must be headless.
Java subprocesses that we launch must be headless.
Don't use exceptions for control flow.
Fix svg preserveAspectRatio attribute value.

* It's case sensitive in some browsers.
Fix svg preserveAspectRatio attribute value.

* It's case sensitive in some browsers.
Merge pull request #2997 from martinfurmanski/2.1-should-upgrade-flaky

[2.1] Print logs from flaky test shouldUpgradeDatabase().
Merge remote-tracking branch 'upstream/1.9-maint' into 2.0-maint

Conflicts:
	community/lucene-index/src/test/java/org/neo4j/index/impl/lucene/TestRecovery.java
	enterprise/ha/src/test/java/org/neo4j/ha/TestPullUpdatesApplied.java
Merge pull request #3034 from davidegrohmann/merge-1.9-into-2.0

Merge 1.9 into 2.0
Fix disappearing relationship type in inspector

* Set default caption in saved grass style
* Set default color in saved grass style
Everything not starting with 'cmdchar' is cypher.

* Also remove old debug message
Fix link
Merge remote-tracking branch 'upstream/2.0-maint' into 2.1-maint
Merge pull request #3035 from davidegrohmann/merge-2.0-into-2.1

Merge 2.0 into 2.1