Sample init scripts for debian/ubuntu
Include initscripts in dist
Move the initscripts so their basename reflects the basename on install
Simplify state_hash_table iterator logic
Merge remote-tracking branch 'origin/master'

* origin/master:
  Move the initscripts so their basename reflects the basename on install
  Include initscripts in dist
  Sample init scripts for debian/ubuntu
  Name the pidfile on error
  chdir to data directory
  Write a pidfile when run in the background
  Remove upack from AC_CONFIG_FILES
  Remove upack
  Remove sparsehash dependency
  Add pthreads to tests
Simplify state_hash_table.get
Ensure the state hash table iterator is primed before use
Add thorough invariant checking to key_state and fix bugs uncovered