adds authethification stuff
merged app.coffee