restructured app.js with less global variables
fixed events links
moved test for event link to events_test
Merge pull request #1 from ggramlich/nconf

triplem nconf some refactoring, change rendering of event link