nsqd: make importable

The changes in this PR split the nsqd application into an executable and a package (called nsqd), in the same manner as nsqlookupd.