Added test for slave-only instance being elected coordinator
Fixes so that slave-only instances not only try not to win elections, but actively don't switch to master in the case they are coordinators (e.g. because the instance created the cluster)

Conflicts:
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/HighlyAvailableGraphDatabase.java
	enterprise/ha/src/test/java/org/neo4j/ha/TestSlaveOnlyCluster.java
Logging performance optimizations:
* Fixed custom Jetty logger to caches isDebugEnabled
* Changed LogbackService to cache isDebugEnabled
* Added isDebugEnabled check before toString() in GCResistantCache

Only add security filter if there are security rules
Fixed merge issues
Merge pull request #2341 from rickardoberg/slaveonlyfix2

Slave-only instances no longer becomes master
Merge pull request #2348 from rickardoberg/optimizedlogging4

Optimize logging and HTTP filter
Merge branch '1.9-maint' into 2.0-merge-1.9

Conflicts:
	community/server/src/main/java/org/neo4j/server/logging/JettyLoggerAdapter.java
	community/server/src/main/java/org/neo4j/server/web/Jetty6WebServer.java
	enterprise/ha/src/main/java/org/neo4j/kernel/impl/cache/GCResistantCache.java
Merge pull request #2375 from chrisvest/2.0-merge-1.9

2.0 merge 1.9
Remove subqueries from QueryGraph by introducing a lookup table for subqueries and an optional field for optional match
Fix: ronja should fail if there are more than a single predicate expression in or in a where clause
Show CSV files in example. Fixed duplicate entry.
Merge pull request #2371 from davidegrohmann/pattern-predicates

Remove subqueries from query graph
Allow Ronja to handle WITH
Inline projections even in the presence of SKIP and LIMIT
Plug a file descriptor leak

Turns out we did not properly close our IndexReaders when the transaction contained relevant changes
and wrapped the lookup iterators (that are resources) in diff-applying iterators (that are not).

This fixes #1799
Shebang lines must have a ! in them.
Merge pull request #2381 from chrisvest/1.9-fix-shell-shebang

1.9 fix shell shebang
Merge pull request #2378 from jakub-/queryplan

Allow Ronja to handle WITH
Refactoring of QueryPlan construction

Moved all QueryPlan producers into an object - QueryPlanProducer
Merge pull request #2383 from systay/queryplanproducer

Refactoring of QueryPlan construction