Properly closes http client to avoid single-connection conflict
Changes to better support Neo4j Desktop app

o Specifies service classes instead of packages to JAX-RS. Specifying
  packages requires JAX-RS to scan the classpath and doing that makes it
  more sensitive to environment changes... such as running the whole
  application inside a wrapped .exe file.
o Changes so that Configurator#getDatabaseTuningProperties() is always
  honored. This makes it much easier to pass in any Configurator implementation.
o JAX-RS ServletHolders gets created after all modules have registered all
  its service, since multiple modules might register at the same mount point.
  This problem became apparent due to the classes/packages change above.
Merge pull request #949 from tinwelint/desktop-server-changes

Changes to better support Neo4j Desktop app
Extra debugging output, some useless field removal, tcpNoDelay added
Fixes responding to internal messages, having it handle the headers properly
Fixes case where single HA instance would perpetually try to elect a master

When an HA instance is alone in the cluster, it will try to contact every
 other instance (i.e. none) for votes and, since by default it holds the master
 role itself, being the only instance, it will wait for the first response
 to come before asking itself. But a response never comes, so the election
 time outs, rinse repeat. This commit fixes that.
It also introduces a test case that demostrates the problem.
Finally, it refactors the ElectionContext to not require delegation
 from ElectionState method calls, making mocking easier.
fixes concurrency issue due to shared instance variable for JsonGenerator #955
fixes #961 wrong content-encoding instead of content-type charset=utf-8
Check if server can be started before starting it for server tests

Make the error message a bit more explicit if there is already a neo4j instance
running on localhost:7474
Merge pull request #963 from mneedham/server-check

Check if server can be started before starting it for server tests
Merge pull request #957 from jexp/955

Eyeballed this, seems sane.
Merge pull request #962 from jexp/content-encoding

fixes #961 wrong content-encoding instead of content-type charset=utf-8
Merge remote-tracking branch 'neo4j/master' into 2.0

Conflicts:
	advanced/server-advanced/src/main/java/org/neo4j/server/advanced/modules/JMXManagementModule.java
	community/server/src/main/java/org/neo4j/server/database/CommunityDatabase.java
	community/server/src/main/java/org/neo4j/server/modules/RESTApiModule.java
	community/server/src/test/java/org/neo4j/server/WrappingNeoServerBootstrapperDocIT.java
	community/server/src/test/java/org/neo4j/server/database/EphemeralDatabase.java
	community/server/src/test/java/org/neo4j/server/database/TestCommunityDatabase.java
	community/server/src/test/java/org/neo4j/server/helpers/ServerBuilder.java
	community/server/src/test/java/org/neo4j/server/modules/RESTApiModuleTest.java
	enterprise/server-enterprise/src/test/java/org/neo4j/server/enterprise/TestEnterpriseDatabase.java
	enterprise/server-enterprise/src/test/java/org/neo4j/server/enterprise/functional/EnterpriseServerIT.java
	packaging/qa/src/test/java/org/neo4j/qa/features/StartAndStopFeatureTest.java
Merge remote-tracking branch 'neo4j/master' into 2.0

Conflicts:
	community/server/src/test/java/org/neo4j/server/helpers/ServerHelper.java
Merge pull request #971 from cleishm/2.0-master-merge

2.0 master merge