added utility.erl with functions for finding nameservice, make ns lookups and logging