Using Express routes

Using Express routes and componentize library.

I did: 
- rename server into index.js so this library can be imported in other projects
- create an Express router and expose that in `index.js`
- move all the server code into `examples/server.js`