Server logic, no-js class and jquery

Moved the logic for restarting the server or not to a more logical place. The user's layout is now getting a 'no-js' class in it's html tag for modenizr and I also added jQuery as vendor file.