Add logging - DEBUG of main PostGIS statements

Actually can do some logging to file now, though does very little. Uses
log_file and log_level setting (since won't just be error logging).