improve tests
Merge pull request #368 from peterneubauer/index-link

adding a future test scenario
Merge pull request #365 from tbaum/guard

fix guard-implementaion to limit operations count or runtime
* Added fine grained size() tests for Node/Relationship and friends
* Reinstated GCR as the default cache, now that all known bugs are fixed
* Renamed Array cache to GC resistant cache after consensus on that name
* Changed size to always calculate worst case size.
* Added (reluctanty) a registeredSize on EntityWithSize which requires more memory, but solves a concurrency issue which made cache size diverge over time
* Correct size() calculations for all objects and some tests for size diverge bug
* Manual cache section updated with cache name change and minor changes.
Merge remote-tracking branch 'neo4j/master'

Conflicts:
	cypher/src/test/scala/org/neo4j/cypher/GraphDatabaseTestBase.scala
	graph-matching/src/test/java/matching/TestPatternMatching.java
	kernel/src/main/java/org/neo4j/kernel/AbstractGraphDatabase.java
	kernel/src/main/java/org/neo4j/kernel/configuration/Config.java
	kernel/src/main/java/org/neo4j/kernel/impl/cache/AdaptiveCacheManager.java
	kernel/src/main/java/org/neo4j/kernel/impl/core/NodeManager.java
	kernel/src/main/java/org/neo4j/kernel/impl/core/ReadOnlyNodeManager.java
	kernel/src/main/java/org/neo4j/kernel/impl/nioneo/store/StoreAccess.java
	kernel/src/test/java/org/neo4j/kernel/impl/core/TestCacheTypes.java
	kernel/src/test/java/org/neo4j/kernel/impl/index/TestIndexProviderStore.java
	kernel/src/test/java/org/neo4j/kernel/impl/nioneo/store/ProduceUncleanStore.java
	kernel/src/test/java/org/neo4j/kernel/impl/transaction/TestTxLog.java
	kernel/src/test/java/org/neo4j/test/impl/EphemeralFileSystemAbstraction.java
	neo4j/src/test/java/recovery/TestRecoveryIssues.java
	server/src/functionaltest/java/org/neo4j/server/webadmin/rest/Neo4jShellConsoleSessionTest.java
	server/src/main/java/org/neo4j/server/NeoServerWithEmbeddedWebServer.java
	server/src/main/java/org/neo4j/server/guard/GuardedDatabaseFactory.java
Fixed a problem where an enabled cache wouldn't start to fill up when adding data for a new index if multiple new indexes were created in the same session
One more assertion on the test
Workaround for supporting in-graph indices again, since IndexCreatorJob now (rightfully) propagates index creation exception out to the spawning thread
Merge pull request #373 from tinwelint/fix-for-temporary-in-graph-indexes

Workaround for supporting in-graph indices, by ignoring the createIndex call for in-graph indexes as there are no in-graph create-index commands as of now. Will be resolved correctly when the new index infrastructure is in place.
Extra assertions for the existence of indexes asking the IndexManager
Added assertions for config for in-graph indexes being persistent across sessions
Changes based on feedback
Created *Settings classes for all extensions
Allow KernelExtensions to specify settings-class
Added size and duration accessors in Config
Use GraphDatabaseFactory and settings in as many places as possible
Added EmbeddedDatabaseRule for handling graph database during tests
Added GraphTransactionRule for handling graph transactions during tests
Updated ProcessStreamHandler to be easier to use
Removed ancient StandaloneWithShell
Updated settings to have same naming conventions
Merge remote-tracking branch 'neo4j/master'

Conflicts:
	lucene-index/src/test/java/org/neo4j/index/impl/lucene/TestLuceneBatchInsert.java
Revert "Created *Settings classes for all extensions"

This reverts commit 6aa2e9650143f501a85ab96663a0caae3962f625.
Revert "Revert "Created *Settings classes for all extensions""

This reverts commit 79f0a4d3d7188d63674f1671abcf23ed85c832a9.
Reverted IndexProvider back to abstract class
Fixes to make it compile
Refactored to be easier to read what the tests assert
Merge branch 'master' into gcr-cache-cleanup
Merge branch 'master' into gcr-cache-cleanup

Conflicts:
	kernel/src/main/java/org/neo4j/kernel/AbstractGraphDatabase.java
	kernel/src/main/java/org/neo4j/kernel/impl/core/NodeManager.java
	kernel/src/test/java/org/neo4j/kernel/impl/cache/TestSizeOf.java
	kernel/src/test/java/org/neo4j/kernel/impl/core/TestCacheTypes.java