too much for a single line

Made directory and game file creation safer.

Fixed memory leak when removing db_results linked list entries.

Style changed to "linux" style. I prefer BSD, but more people are familiar with
linux.
add libbsd to README
removed old debug() macros
make sure we don't free potential unitialized pointer
Merge branch 'master' into v19

This branch is (I feel) in a better state. And I wish to continue maintaining
this branch as I use this one personally. So we disregard 'master' branch and
make this one master.