start module

Wrapped the server start function into a module which is then available
for export.

Also required url so server can distinguish between different URL's
connecting to it.
added index.js

Index.js calls in the server start module.