Cleanup frontend - Part 2

This finalizes the frontend cleanup, this fixes several issues with name spacing, file loading and html/css styles:

- jQuery now loads correctly within the backend, fixes #1909, #1584
- csrf helper adds correct token to header without using cookies, fixes #1906, #1147
- widget is not required anymore, fixes #1467