Playing with futures by implementing a mini node server