Added option to use a write-ahead log

@ndonald2 @joe-goullaud Whoever has a min, this is a small one. iOS7 changed it's default to using a write ahead log, but if you want to later copy your sqlite file without having to copy the corresponding WAL file, this is useful.