upgraded netty and refactored netty resource management
Merge remote-tracking branch 'upstream/master' into netty363
move timing from cypher to shell
Merge remote-tracking branch 'upstream/master' into netty363
adding explicit call to free resources in channel factory
Merge pull request #677 from lassewesth/netty363

upgrade to netty 3.6.3
Unused imports.
Removed use of EmbeddedGraphDatabase and replaced with GraphDatabaseFactory. One technical debt down, thousands to go.
Catch classcast and report as illegal argument
Merge pull request #713 from jexp/master-move-timings-from-cypher-to-shell

move timing from cypher to shell
Changes logging of GCR to debug, on an appropriate logger
Formatting, splitting long lines
Bump doctools version to get correct github links.
Changes in lifecycle ordering, getting network to be the last to close on shutdown
Temporarily reenabling debug output on NetworkInstance
Adds logging on NetworkInstance shutdown
Adds cutoff of elections when there is no quorum.

When a value is delivered to the AB, the guarantee currently is that it will eventually
get delivered. That means than an instance that loses quorum, demotes another and elects itself
coordinator will have that value broadcasted when quorum is reestablished. This will potentially
lead to conflicts with other instances that have done the same and races will ensue.
This patch ensures that elections don't happen when quorum is not present.
Solves race condition on test base directory creation
Avoiding confusion in the shell manpage.