Add dependency to lsof for Debian packages.

This fixes #596.
Upgrade stores from 1.9 format to 2.0 format.

- NodeStore is rewritten in new format.
- All other stores are just copied with new version trailer.
- Removed code and tests that were only applicable between older neo4j versions.
- Centralized legacy store file names and version logic.
- Verify that logical logs are backed up, but not left in the working directory.
Wrote tests for lucene index recovery to ensure duplicates don't occur. This also includes fixes to the lifecycles of Directory and IndexReader instances from lucene.
Fixes for a recent migration commit.

 - Fixed remaining hard references to legacy version v0.9.9 instead of using
   LegacyStore.LEGACY_VERSION.
 - Increased expected max ID of node store in a test due to the previous
   store migration code increasing max ID one too much even if the last ID
   wasn't in use.
- Changed the LuceneIndexRecoveryIT to expose the problem where recovery
would insert data so that it got duplicated in a lucene index.
- Fixed so that IndexAccessor gets a separate call when doing recovery
  instead of update()
Merge pull request #639 from tinwelint/index-recovery-issue

Exposes and fixes lucene recovery issue
Updated changelogs for 2.0
Fix for broken test
Merge pull request #641 from boggle/2.0

merges master
Changes DechunkingChannelBuffer to use milliseconds since that's the configuration provided value
Make the Cypher reference a top level part of the manual.
Docs formatting typo.
Update store version record in NeoStore when migrating to new store format.
Ensure that dynamic properties are loaded before creating NodePropertyUpdates.
Added the failsafe plugin as needed.
Cypher checks if indexes are online before using them
Merge pull request #644 from nawroth/cypher-part

Make the Cypher reference a top level part of the manual.
Merge pull request #642 from digitalstain/netty-buffer-timeout

Changes DechunkingChannelBuffer to use milliseconds since that's the configuration provided value
TraversalMatcherBuilder handles global queries
Merge pull request #598 from jotomo/596

Add dependency to lsof for Debian packages.