Copy of source from ntop.org.

The canonical sources for tsdb are hosted at ntop.org here:

https://svn.ntop.org/svn/ntop/trunk/

This commit is an unmodified version along with a copy of the GPL v2
LICENSE.
Minor cleanup of export util
Default permission for db 0664
First pass at a simple CLI
Fixed -t timestamp option for tsdb-set
Time interval for test2 set to one day

This corresponds with tsdbExport, which can be used to export the
results.
Verbose option for commands
Normalizing end as well as cur for comparison
Clearer spelling of num_fragments
Fix to index map range checking

1) epoch_start was never set explicitly, which could result in garbage
landing in the index map

2) the test for whether an index map applied to an epoch contained a
comparison typo
Updates notes
Trailing whitespace
Interval option for get CLI
Set alive and kicking to 0 on close
Updated notes
A test that does something
Assuming we're starting from sratch with archive
Misc makefile cleanup
Deleted crufty programs
Fixed warning