moved script into script dir.
read the config file on start-up
log and recover fast from bad config file.
adapted the key_counter_server script to the new code.