Added configurable logging format string
Added configurable logging levels
Tons of shellcheck fixes
Test use temp config dir (Fixes #10)