Very simple thread-based server