support custom config as a module, fixed issue #132

```
var config = require('./config');
var cnpmServer = require('cnpmjs.org');

cnpmServer(config);//start the server
```