added basic auth middleware

creadentials can be set in the config file
everybody uses the same credentials
bit of refactoring in main.go

new command line option: -log for setting the log file's path
Merge pull request #5 from kir-dev/httpauth

HTTP basic authentication