Fix memory leak.

Dense block cache was never freed. As it is a single static allocation
that is needed nearly throughout the program, it isn't a major issue.

Found thanks to valgrind.
Fix --help to give the correct --cache-strategy for chunk

also error out if an unknown --cache-strategy is given
Add a .gitignore file including all the autogenerated files