Server accepts path to patterns file as first argument
Using mainMutex to prevent race condition in updating GUI