makes route exports functions to enable router injections, added dotEnv ...

...to server.js
this is already in index.js. just move it above the line that requires the server.