Add configure options to fine tune local state dirs.

--logdir: logs produced at run time
--spooldir: other data produced at run time
--localstatedir: contains spool or log dirs if those options aren't set

Addresses BIT-1166.
Merge remote-tracking branch 'origin/topic/jsiwek/bit-1166'

* origin/topic/jsiwek/bit-1166:
  Add configure options to fine tune local state dirs.