Properly clean up goroutines after compaction.
Inline flush, delegate to central resource manager.

I'm not sure this is perfectly correct, but it's inching closer.

I think the file stuff still needs a lot of work to finish up the
rest.

cbugg: closes bug-384 bug-368
Fix for ancient version of go.
Get rid of flush and compaction interval settings.
More copy and paste cleanup.
Disable logging when running server unit tests.
go fmt.