triplem nconf some refactoring, change rendering of event link

The link for a single event now points to the baseUrl but not to /baseUrl
Less global variables in app.js