Copy over libcoind main routine.

Copy the libcoind main routine from libcoin/applications/libcoind as a
first start.  Will be customised int he future to handle Namecoin
specific things (and always use the Namecoin blockchain).