Allow setting of server logdir and state path

This allows one to run the server as a non-admin by writing to user owned files.