Merge pull request #64 from pkit/bug_fix

get a proper response if middleware not installed
fix bug in parsing daemon config

quite a bad bug was left after refactoring variable names for proxyquery
test added