Allow setting of server logdir and state path
Merge pull request #257 from onlynone/master

Allow setting of server logdir and state path