defaults to process.cwd()
fixup config definition
don't call `server.close` if `main.close` exists
remove npmlog
upgrade optimist dependency