Separate config out of server directory

see description in #523