export the Router as a function and put all the properties on it

This changes the api from

```js
var routes = require("routes")
var router = new routes.Router()
```

to 

```js
var Router = require("routes")
var router = Router()
```