make metalsmith cli requireable

makes metalsmith cli requireable by exporting a function that accepts a directory to be used as the current working directory for the Metalsmith instance. a "metalsmith.json" file should already be present under the directory used as the cwd for the new instance when "lib/cli.js" is required.