added basic logic to all routes
added partial for badges that uses data in local mongodb