[update] added authentification and long polling

Added an authentification middleware to every route in router
Now the db gets a request every 3 minutes to make shure the connection
to the db stays open!