Make server respect project-config output dirs

(since they can be customized). Also some small cleanup.